Skip to content

Commit

Permalink
chore: configure VS Code localization extension 'Lingua' for the proj…
Browse files Browse the repository at this point in the history
…ect (#1741)

* Lingua - Managing ngx-translations
* https://marketplace.visualstudio.com/items?itemName=chr33z.lingua-vscode
* configure only for 'en_US' by default for more convenient localization editing
  • Loading branch information
shauke authored Jan 22, 2025
1 parent be0df37 commit 2d8117c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint",
"dbaeumer.vscode-eslint",
// localization
"chr33z.lingua-vscode",
// testing
"andys8.jest-snippets",
// documentation
Expand Down
8 changes: 8 additions & 0 deletions .lingua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"translationFiles": [
{
"lang": "en_US",
"uri": "src/assets/i18n/en_US.json"
}
]
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
.husky
.gitattributes
.editorconfig
.lingua
.nvmrc
.nsprc
package*.json
Expand Down
2 changes: 2 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint",
"dbaeumer.vscode-eslint",
// localization
"chr33z.lingua-vscode",
// testing
"andys8.jest-snippets",
// documentation
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@
"eslint.options": {
"extensions": [".ts", ".html"]
},
"eslint.validate": ["javascript", "typescript", "html"]
"eslint.validate": ["javascript", "typescript", "html"],

"lingua.flatTranslationKeys": true,
"lingua.defaultLanguage": "en_US"
}

0 comments on commit 2d8117c

Please sign in to comment.