feat(v2): Add localeDropdown navbar item type + i18n localeConfigs field (#3916)

* Add localeDropdown navbar item type

* fix type + add localeConfigs test
This commit is contained in:
Sébastien Lorber 2020-12-14 18:28:39 +01:00 committed by GitHub
parent 3570aa06c8
commit aff656182c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 189 additions and 4 deletions

View file

@ -92,9 +92,14 @@ export type TranslationFileContent = Record<string, TranslationMessage>;
export type TranslationFile = {path: string; content: TranslationFileContent};
export type TranslationFiles = TranslationFile[];
export type I18nLocaleConfig = {
label: string;
};
export type I18nConfig = {
defaultLocale: string;
locales: [string, ...string[]];
localeConfigs: Record<string, I18nLocaleConfig>;
};
export type I18n = I18nConfig & {