Implemented multi-language support for the application: - Added @nuxtjs/i18n plugin configuration - Created locale files for English (en-US) and Chinese (zh-CN) - Updated components to use translation keys - Added language switcher in header - Configured VSCode i18n-ally settings - Prepared translation infrastructure for future language expansions
67 lines
1.8 KiB
JSON
67 lines
1.8 KiB
JSON
{
|
|
// Disable the default formatter, use eslint instead
|
|
"prettier.enable": false,
|
|
"editor.formatOnSave": false,
|
|
|
|
// Auto fix
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit",
|
|
"source.organizeImports": "never"
|
|
},
|
|
|
|
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
"eslint.rules.customizations": [
|
|
{ "rule": "style/*", "severity": "off", "fixable": true },
|
|
{ "rule": "format/*", "severity": "off", "fixable": true },
|
|
{ "rule": "*-indent", "severity": "off", "fixable": true },
|
|
{ "rule": "*-spacing", "severity": "off", "fixable": true },
|
|
{ "rule": "*-spaces", "severity": "off", "fixable": true },
|
|
{ "rule": "*-order", "severity": "off", "fixable": true },
|
|
{ "rule": "*-dangle", "severity": "off", "fixable": true },
|
|
{ "rule": "*-newline", "severity": "off", "fixable": true },
|
|
{ "rule": "*quotes", "severity": "off", "fixable": true },
|
|
{ "rule": "*semi", "severity": "off", "fixable": true }
|
|
],
|
|
|
|
// Enable eslint for all supported languages
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"javascriptreact",
|
|
"typescript",
|
|
"typescriptreact",
|
|
"vue",
|
|
"html",
|
|
"markdown",
|
|
"json",
|
|
"jsonc",
|
|
"yaml",
|
|
"toml",
|
|
"xml",
|
|
"gql",
|
|
"graphql",
|
|
"astro",
|
|
"svelte",
|
|
"css",
|
|
"less",
|
|
"scss",
|
|
"pcss",
|
|
"postcss"
|
|
],
|
|
"i18n-ally.dirStructure": "auto",
|
|
"i18n-ally.localesPaths": [
|
|
"i18n/locales"
|
|
],
|
|
"i18n-ally.extract.keygenStyle": "camelCase",
|
|
"i18n-ally.keystyle": "nested",
|
|
"i18n-ally.enabledParsers": [
|
|
"json"
|
|
],
|
|
"i18n-ally.namespace": true,
|
|
"i18n-ally.sortKeys": true,
|
|
"i18n-ally.sourceLanguage": "en-US",
|
|
"i18n-ally.displayLanguage": "en-US",
|
|
"i18n-ally.parsers.typescript.compilerOptions": {
|
|
"moduleResolution": "node"
|
|
},
|
|
"i18n-ally.enabledFrameworks": ["vue"]
|
|
}
|