Give locale file static name so Transifex is better at recognizing it

This commit is contained in:
Lei Nelissen
2020-11-02 23:06:24 +01:00
parent 6cf421f24f
commit 9ea0753912
3 changed files with 2 additions and 2 deletions

View File

@@ -4,8 +4,8 @@ import { LocaleKeys } from './types';
// Lazy loaders for locale
const localeGetters: Record<string, () => object> = {
en: () => require('./lang/en.json'),
fr: () => require('./lang/fr.json'),
en: () => require('./lang/en/locale.json'),
fr: () => require('./lang/fr/locale.json'),
};
// Have RNLocalize pick the best locale from the languages on offer