Skip to content

Commit

Permalink
feat: move the locales directory
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqifan committed Sep 11, 2024
1 parent d96f042 commit 0e6da5a
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 19 deletions.
2 changes: 0 additions & 2 deletions .env

This file was deleted.

3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Development environment configuration.
# Development environment variables.
NODE_ENV="development"

# Base public path.
VITE_BASE="/"
Expand Down
3 changes: 2 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Production environment configuration.
# Production environment variables.
NODE_ENV="production"

# Base public path.
VITE_BASE="/"
Expand Down
65 changes: 51 additions & 14 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,64 @@
{ // 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 }
{
"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",
Expand All @@ -48,6 +85,6 @@
],
// Enable the i18n-ally extension
"i18n-ally.localesPaths": [
"locales"
"src/locales"
]
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default defineConfig(({ mode }) => {
runtimeOnly: true,
compositionOnly: true,
fullInstall: true,
include: [resolve(__dirname, 'locales/**')],
include: [resolve(__dirname, 'src/locales/**')],
}),

// Vite compression plugin.
Expand Down

0 comments on commit 0e6da5a

Please sign in to comment.