- Changed output path for i18next configuration in admin and user apps to "public/assets/locales/{{language}}/{{namespace}}.json".
- Added new translation keys in English and Chinese for admin and user updates in tool.json files.
- Refactored SystemVersionCard component to utilize new service version checking and updating logic.
- Introduced basic service version checking and updating functions in the gateway service.
- Added typings for new API endpoints related to service version management.
- Updated Vite configuration to rewrite API paths.
- Added TypeScript error handling in various service files.
24 lines
658 B
TypeScript
24 lines
658 B
TypeScript
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/assets/locales/{{language}}/{{namespace}}.json", // Output path template
|
|
},
|
|
});
|