Merged PR 225: Implement translations
Implement translations with useContext in React +Add events to allow changing the language in the app +Refactor AppEvents +Redesign vertical bars in elements
This commit is contained in:
parent
60a3ead6aa
commit
505813d530
26 changed files with 527 additions and 160 deletions
14
src/Translations/Translations.ts
Normal file
14
src/Translations/Translations.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import en from './translation.en.json';
|
||||
import fr from './translation.fr.json';
|
||||
|
||||
export const translations: Record<string, Record<string, string>> = {
|
||||
en,
|
||||
fr
|
||||
};
|
||||
|
||||
// Use languageOptions to restrict existing dictionary
|
||||
// and create a select input
|
||||
export const languageOptions: Record<string, string> = {
|
||||
en: 'English',
|
||||
fr: 'French'
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue