mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
feat(front): add support for additional locales including Japanese, Korean, French, German, and Traditional Chinese in nuxt.config.ts and update app config structure for text translation
This commit is contained in:
@@ -9,6 +9,11 @@ const useMyAppConfig = () => {
|
||||
version: string
|
||||
build_time: number
|
||||
features: string[]
|
||||
text: {
|
||||
translate: {
|
||||
provider: string[]
|
||||
}
|
||||
}
|
||||
}
|
||||
}>('/api/config')
|
||||
return computed(() => data?.value?.data)
|
||||
|
||||
@@ -24,6 +24,11 @@ export default defineNuxtConfig({
|
||||
locales: [
|
||||
{ code: 'zh-CN', name: '中文(简体)', file: 'zh-CN.json' },
|
||||
{ code: 'en', name: 'English', file: 'en.json' },
|
||||
{ code: 'ja', name: '日本語', file: 'ja.json' },
|
||||
{ code: 'ko', name: '한국어', file: 'ko.json' },
|
||||
{ code: 'fr', name: 'Français', file: 'fr.json' },
|
||||
{ code: 'de', name: 'Deutsch', file: 'de.json' },
|
||||
{ code: 'zh-TW', name: '中文(繁體)', file: 'zh-TW.json' },
|
||||
],
|
||||
},
|
||||
vite: {
|
||||
|
||||
Reference in New Issue
Block a user