Add lobe-i18n setup and translation scripts and update translation files for consistency (#1751)

* refactor: convert translation files from TS to JSON format

* feat: add lobe-i18n setup and translation scripts

* chore: update translation files for consistency

* chore: refine translations in ja_JP.json for natural phrasing

* refactor: revert locale file names to original simpler format (e.g., en_US → en)
This commit is contained in:
Yuki Shindo
2024-12-02 10:03:17 +09:00
committed by GitHub
parent 5c6eecd660
commit 9ef40189f9
14 changed files with 5155 additions and 725 deletions

11
.i18nrc.cjs Normal file
View File

@@ -0,0 +1,11 @@
// This file is intentionally kept in CommonJS format (.cjs)
// to resolve compatibility issues with dependencies that require CommonJS.
// Do not convert this file to ESModule format unless all dependencies support it.
const { defineConfig } = require('@lobehub/i18n-cli');
module.exports = defineConfig({
entry: 'src/locales/en.json',
entryLocale: 'en',
output: 'src/locales',
outputLocales: ['zh', 'ru', 'ja'],
});