mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #3163 from overleaf/as-jpa-i18n-cleanup
[misc] Translations cleanup GitOrigin-RevId: 46bf1142bb9415eeebf638c120597996aaa55f8b
This commit is contained in:
@@ -27,16 +27,12 @@ async function run() {
|
||||
lang.translation[key] = sanitize(value)
|
||||
}
|
||||
|
||||
const outputLngCode = code === 'en-GB' ? 'en' : code
|
||||
await fs.writeFile(
|
||||
`../../locales/${code}.json`,
|
||||
`${__dirname}/../../locales/${outputLngCode}.json`,
|
||||
JSON.stringify(lang.translation, null, 2)
|
||||
)
|
||||
}
|
||||
|
||||
// Copy files, so we have appropriate dialects
|
||||
await fs.copyFile('../../locales/en-GB.json', '../../locales/en-US.json')
|
||||
await fs.copyFile('../../locales/en-GB.json', '../../locales/en.json')
|
||||
await fs.copyFile('../../locales/zh-CN.json', '../../locales/cn.json')
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
process.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user