Merge pull request #2495 from lbryio/i18n_fixes

I18n fixes
This commit is contained in:
Sean Yesmunt 2019-05-21 22:39:28 -04:00 committed by GitHub
commit 6532353036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 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,7 +3,7 @@ import y18n from 'y18n';
const i18n = y18n({
directory: `static/locales`.replace(/\\/g, '\\\\'),
updateFiles: false,
updateFiles: true,
locale: 'en',
});
// @endif