Webatrice: i18n (#4562)

* implement i18n capability

* reset package.lock file

* remove custom fallback

* fix relative path for i18n files

* check for language support before fetch request

* add LanguageDropdown component, es translation file to prove functionality

* remove boilerplate

* bundle default english translation with app

* add missing file

* rollup component-level i18n files

* cleanup

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-02-26 21:36:53 -06:00 committed by GitHub
parent 217dc09c0f
commit 9577ada171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 365 additions and 111 deletions

View file

@ -11,3 +11,4 @@ export * from './sort';
export * from './forms';
export * from './message';
export * from './settings';
export * from './languages';

View file

@ -0,0 +1,11 @@
import { CountryLabel } from './countries';
export enum Language {
'en-US' = 'en-US',
'es-ES' = 'es-ES',
}
export enum LanguageCountry {
'en-US' = 'us',
'es-ES' = 'es',
}