typed-locales 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# An array of strings which contain Language Ids defined by VS Code
|
|
2
|
+
# You can check available language ids here: https://code.visualstudio.com/docs/languages/identifiers
|
|
3
|
+
languageIds:
|
|
4
|
+
- javascript
|
|
5
|
+
- typescript
|
|
6
|
+
- javascriptreact
|
|
7
|
+
- typescriptreact
|
|
8
|
+
|
|
9
|
+
# An array of RegExes to find the key usage. **The key should be captured in the first match group**.
|
|
10
|
+
# You should unescape RegEx strings in order to fit in the YAML file
|
|
11
|
+
# To help with this, you can use https://www.freeformatter.com/json-escape.html
|
|
12
|
+
usageMatchRegex:
|
|
13
|
+
# The following example shows how to detect `t("your.i18n.keys")`
|
|
14
|
+
# the `{key}` will be placed by a proper keypath matching regex,
|
|
15
|
+
# you can ignore it and use your own matching rules as well
|
|
16
|
+
- "[^\\w\\d]t\\(\\s*['\"`]([\\w-.]+)['\"`]\\s*(?:,\\s*\\{[^\\}]*\\})?\\s*\\)"
|
|
17
|
+
|
|
18
|
+
# A RegEx to set a custom scope range. This scope will be used as a prefix when detecting keys
|
|
19
|
+
# and works like how the i18next framework identifies the namespace scope from the
|
|
20
|
+
# useTranslation() hook.
|
|
21
|
+
# You should unescape RegEx strings in order to fit in the YAML file
|
|
22
|
+
# To help with this, you can use https://www.freeformatter.com/json-escape.html
|
|
23
|
+
scopeRangeRegex: ""
|
|
24
|
+
|
|
25
|
+
# An array of strings containing refactor templates.
|
|
26
|
+
# The "$1" will be replaced by the keypath specified.
|
|
27
|
+
# Optional: uncomment the following two lines to use
|
|
28
|
+
|
|
29
|
+
# refactorTemplates:
|
|
30
|
+
# - i18n.get("$1")
|
|
31
|
+
|
|
32
|
+
# If set to true, only enables this custom framework (will disable all built-in frameworks)
|
|
33
|
+
monopoly: true
|