Fix trans-dump
https://github.com/ornicar/lila/pull/9857 replaced `"` by `'`, reverting to `"` to avoid massive git diff.pull/9863/head
parent
21b0d2cde0
commit
5ed645e77f
|
@ -2,8 +2,9 @@ const { readFile, writeFile } = require('fs/promises');
|
|||
const { parseString } = require('xml2js');
|
||||
const path = require('path');
|
||||
|
||||
const lilaDir = path.resolve(__dirname, "..");
|
||||
const lilaDir = path.resolve(__dirname, '..');
|
||||
const baseDir = path.resolve(lilaDir, 'translation/source');
|
||||
console.log(baseDir)
|
||||
const dbs =
|
||||
'site arena emails learn activity coordinates study clas contact patron coach broadcast streamer tfa settings preferences team perfStat search tourname faq lag swiss puzzle puzzleTheme challenge storm ublog'.split(
|
||||
' '
|
||||
|
@ -29,7 +30,7 @@ function keyListFrom(name) {
|
|||
name,
|
||||
code:
|
||||
keys
|
||||
.map(k => `val \`${k}\` = new I18nKey('${name === 'site' ? '' : xmlName(name) + ':'}${k}')`)
|
||||
.map(k => `val \`${k}\` = new I18nKey("${name === 'site' ? '' : xmlName(name) + ':'}${k}")`)
|
||||
.join('\n') + '\n',
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue