updates for i18n

This commit is contained in:
Jeremy Kauffman 2019-05-20 09:57:14 -04:00 committed by Sean Yesmunt
parent 957446ddad
commit 570edffc0c
3 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View file

@ -6,5 +6,6 @@
/static/locales
yarn-error.log
package-lock.json
.transifexrc
.idea/
/build/daemon*

View file

@ -1,8 +1,8 @@
[main]
host = https://www.transifex.com
[lbry-deskop.app-strings]
file_filter = dist/locales/<lang>.json
source_file = dist/locales/en.json
[lbry-desktop.app-strings]
file_filter = static/locales/<lang>.json
source_file = static/locales/en.json
source_lang = en
type = KEYVALUEJSON

View file

@ -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'