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
|
/static/locales
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
.transifexrc
|
||||||
.idea/
|
.idea/
|
||||||
/build/daemon*
|
/build/daemon*
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
[main]
|
[main]
|
||||||
host = https://www.transifex.com
|
host = https://www.transifex.com
|
||||||
|
|
||||||
[lbry-deskop.app-strings]
|
[lbry-desktop.app-strings]
|
||||||
file_filter = dist/locales/<lang>.json
|
file_filter = static/locales/<lang>.json
|
||||||
source_file = dist/locales/en.json
|
source_file = static/locales/en.json
|
||||||
source_lang = en
|
source_lang = en
|
||||||
type = KEYVALUEJSON
|
type = KEYVALUEJSON
|
||||||
|
|
|
@ -3,8 +3,8 @@ import y18n from 'y18n';
|
||||||
|
|
||||||
const i18n = y18n({
|
const i18n = y18n({
|
||||||
directory: `static/locales`.replace(/\\/g, '\\\\'),
|
directory: `static/locales`.replace(/\\/g, '\\\\'),
|
||||||
updateFiles: false,
|
updateFiles: true,
|
||||||
locale: 'en',
|
locale: 'fr',
|
||||||
});
|
});
|
||||||
// @endif
|
// @endif
|
||||||
// @if TARGET='web'
|
// @if TARGET='web'
|
||||||
|
|
Loading…
Reference in a new issue