updates for i18n
This commit is contained in:
parent
957446ddad
commit
570edffc0c
3 changed files with 6 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,5 +6,6 @@
|
|||
/static/locales
|
||||
yarn-error.log
|
||||
package-lock.json
|
||||
.transifexrc
|
||||
.idea/
|
||||
/build/daemon*
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue