feat: update bot chunk 4

This commit is contained in:
tresabhi committed 2025-01-16 14:10:28 -06:00
1 parent 5499cb5cca
commit 98724df711
11 files changed
+122 -91

No files matched your search

+4 -3
View File
@@ -1,4 +1,5 @@
import { merge } from 'lodash-es';
import { writeFile } from 'fs/promises';
import { merge } from 'ts-deepmerge';
import en from '../strings/en.json';
import es from '../strings/es.json';
import fr from '../strings/fr.json';
@@ -54,9 +55,7 @@ for (const locale in stringsRaw) {
}
const localeStrings = stringsRaw[locale as SupportedLocale];
stringsPartial[locale as SupportedLocale] = merge(
{},
stringsRaw[DEFAULT_LOCALE],
localeStrings,
);
@@ -71,6 +70,8 @@ export const STRINGS = stringsPartial as Record<
BlitzKitStrings
>;
writeFile('test.json', JSON.stringify(STRINGS, null, 2));
export type SupportedLocale = keyof typeof stringsRaw;
export const SUPPORTED_LOCALE_BLITZ_MAP: Record<SupportedLocale, string> = {