Skip to content

Commit

Permalink
chore: return back i18n-ally custom config (closes #188)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodmax committed Feb 20, 2021
1 parent 383c81e commit 638217f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .vscode/i18n-ally-custom-framework.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# An array of strings which contain Language Ids defined by VS Code
# You can check available language ids here: https://code.visualstudio.com/docs/languages/overview#_language-id
languageIds:
- javascript
- typescript
- javascriptreact
- typescriptreact

# An array of RegExes to find the key usage. **The key should be captured in the first match group**.
# You should unescape RegEx strings in order to fit in the YAML file
# To help with this, you can use https://www.freeformatter.com/json-escape.html
usageMatchRegex:
# The following regex allow to detect `t('your.i18n.keys')`
# the `{key}` will be placed by a proper key path matching regex,
# you can ignore it and use your own matching rules as well
- "[^\\w\\d]t\\([']({key})[']"
- "[^\\w\\d]_\\([']({key})[']"
4 changes: 2 additions & 2 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"node_modules/**",
"dits/**",
"reports/**",
".vscode/**",
"package-lock.json",
"*.svg"
"*.svg",
".vscode/extensions.json"
],
"language": "en",
"import": ["@cspell/dict-ru_ru/cspell-ext.json"],
Expand Down

0 comments on commit 638217f

Please sign in to comment.