feat: base english language, also fallback to english

This commit is contained in:
2026-08-25 08:32:19 +05:00
parent 2301b0e165
commit 74a18d91a7
8 changed files with 767 additions and 273 deletions
+5 -3
View File
@@ -3,7 +3,7 @@ import type { CategoryId } from '../categories';
export const LOCALES = ['ru', 'en'] as const;
export type Locale = (typeof LOCALES)[number];
export const BASE_LOCALE: Locale = 'ru';
export const BASE_LOCALE: Locale = 'en';
export const LOCALE_TAGS: Record<Locale, string> = {
ru: 'ru-RU',
@@ -15,12 +15,14 @@ export function isLocale(value: unknown): value is Locale {
}
export type ToolStrings = {
title: string;
description: string;
title?: string;
description?: string;
/** Подписи параметров по их id. */
params?: Record<string, string>;
/** Подписи опций select: paramId -> value -> label. */
options?: Record<string, Record<string, string>>;
/** Тексты-результаты текстовых инструментов (analyze): ключ -> строка. */
results?: Record<string, string>;
};
export type HeaderStrings = {