mirror of
https://github.com/readest/readest.git
synced 2026-04-28 11:30:48 +00:00
Add Hungarian (hu) as a new supported locale with full translation coverage. Also translate the new "Toggle Toolbar" key across all 30 existing locales. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
65 lines
1,022 B
JavaScript
65 lines
1,022 B
JavaScript
const options = {
|
|
debug: false,
|
|
sort: false,
|
|
func: {
|
|
list: ['_'],
|
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
},
|
|
lngs: [
|
|
'de',
|
|
'ja',
|
|
'es',
|
|
'fa',
|
|
'fr',
|
|
'it',
|
|
'el',
|
|
'ko',
|
|
'uk',
|
|
'nl',
|
|
'sl',
|
|
'sv',
|
|
'pl',
|
|
'pt',
|
|
'ru',
|
|
'tr',
|
|
'hi',
|
|
'id',
|
|
'vi',
|
|
'ms',
|
|
'he',
|
|
'ar',
|
|
'th',
|
|
'bo',
|
|
'bn',
|
|
'ta',
|
|
'si',
|
|
'zh-CN',
|
|
'zh-TW',
|
|
'ro',
|
|
'hu',
|
|
],
|
|
ns: ['translation'],
|
|
defaultNs: 'translation',
|
|
defaultValue: '__STRING_NOT_TRANSLATED__',
|
|
resource: {
|
|
loadPath: './public/locales/{{lng}}/{{ns}}.json',
|
|
savePath: './public/locales/{{lng}}/{{ns}}.json',
|
|
jsonIndent: 2,
|
|
lineEnding: '\n',
|
|
},
|
|
keySeparator: false,
|
|
nsSeparator: false,
|
|
interpolation: {
|
|
prefix: '{{',
|
|
suffix: '}}',
|
|
},
|
|
metadata: {},
|
|
allowDynamicKeys: true,
|
|
removeUnusedKeys: true,
|
|
};
|
|
|
|
module.exports = {
|
|
input: ['src/**/*.{js,jsx,ts,tsx}', '!src/**/*.test.{js,jsx,ts,tsx}'],
|
|
output: '.',
|
|
options,
|
|
};
|