mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: update bot chunk 4
This commit is contained in:
1 parent
5499cb5cca
commit
98724df711
11 files changed
+122
-91
No files matched your search
@@ -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> = {
|
||||
|
||||
Reference in new issue
Block a user