🎉 feat: initialization
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { defineConfig } from "i18next-cli";
|
||||
|
||||
/**
|
||||
* i18next CLI configuration
|
||||
*
|
||||
* Used for extracting translation keys and managing translation files.
|
||||
* Inherits language settings from the shared i18n configuration.
|
||||
*
|
||||
* @see https://github.com/i18next/i18next-cli
|
||||
*/
|
||||
export default defineConfig({
|
||||
// Use supported languages from shared config
|
||||
locales: ["en-US", "zh-CN"],
|
||||
|
||||
// Extraction configuration
|
||||
extract: {
|
||||
input: [
|
||||
"src/**/*.{js,jsx,ts,tsx}",
|
||||
"../../packages/ui/src/**/*.{js,jsx,ts,tsx}",
|
||||
], // Source files to scan
|
||||
output: "public/locales/{{language}}/{{namespace}}.json", // Output path template
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user