From 9ea07539124204208431718249de8c043b2ead6e Mon Sep 17 00:00:00 2001 From: Lei Nelissen Date: Mon, 2 Nov 2020 23:06:24 +0100 Subject: [PATCH] Give locale file static name so Transifex is better at recognizing it --- src/localisation/index.ts | 4 ++-- src/localisation/lang/{en.json => en/locale.json} | 0 src/localisation/lang/{fr.json => fr/locale.json} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/localisation/lang/{en.json => en/locale.json} (100%) rename src/localisation/lang/{fr.json => fr/locale.json} (100%) diff --git a/src/localisation/index.ts b/src/localisation/index.ts index bf44f8c..65c5d60 100644 --- a/src/localisation/index.ts +++ b/src/localisation/index.ts @@ -4,8 +4,8 @@ import { LocaleKeys } from './types'; // Lazy loaders for locale const localeGetters: Record 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 diff --git a/src/localisation/lang/en.json b/src/localisation/lang/en/locale.json similarity index 100% rename from src/localisation/lang/en.json rename to src/localisation/lang/en/locale.json diff --git a/src/localisation/lang/fr.json b/src/localisation/lang/fr/locale.json similarity index 100% rename from src/localisation/lang/fr.json rename to src/localisation/lang/fr/locale.json