From 570edffc0c1b1257d46ce1e77c9d4ea479f668de Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Mon, 20 May 2019 09:57:14 -0400 Subject: [PATCH 1/2] updates for i18n --- .gitignore | 1 + .tx/config | 6 +++--- src/ui/i18n/index.js | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9f29bf2c7..7f3ad7532 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,6 @@ /static/locales yarn-error.log package-lock.json +.transifexrc .idea/ /build/daemon* diff --git a/.tx/config b/.tx/config index 3868bf506..9961e304b 100644 --- a/.tx/config +++ b/.tx/config @@ -1,8 +1,8 @@ [main] host = https://www.transifex.com -[lbry-deskop.app-strings] -file_filter = dist/locales/.json -source_file = dist/locales/en.json +[lbry-desktop.app-strings] +file_filter = static/locales/.json +source_file = static/locales/en.json source_lang = en type = KEYVALUEJSON diff --git a/src/ui/i18n/index.js b/src/ui/i18n/index.js index b4b3e4c94..970a6ead2 100644 --- a/src/ui/i18n/index.js +++ b/src/ui/i18n/index.js @@ -3,8 +3,8 @@ import y18n from 'y18n'; const i18n = y18n({ directory: `static/locales`.replace(/\\/g, '\\\\'), - updateFiles: false, - locale: 'en', + updateFiles: true, + locale: 'fr', }); // @endif // @if TARGET='web' -- 2.45.3 From 15435e1cebdc995324c3b82fe5b760f21398d4c5 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Mon, 20 May 2019 09:58:51 -0400 Subject: [PATCH 2/2] restore language from test --- src/ui/i18n/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/i18n/index.js b/src/ui/i18n/index.js index 970a6ead2..c61b3541d 100644 --- a/src/ui/i18n/index.js +++ b/src/ui/i18n/index.js @@ -4,7 +4,7 @@ import y18n from 'y18n'; const i18n = y18n({ directory: `static/locales`.replace(/\\/g, '\\\\'), updateFiles: true, - locale: 'fr', + locale: 'en', }); // @endif // @if TARGET='web' -- 2.45.3