-
I've been using this extension with my React projects for a long time, and am very satisfied, thanks for your work! Now I'm writing a macro in TiddlyWiki to translate like The localization is in yaml style, but first few lines are metadata, until a blank line: title: $:/language/linonetwo/daily-habit/zh-Hans/
Habits: 习惯
Life: 生活
Up: 向上 Is it possible to adapt this usage in vscode? I found I need |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is not working # .vscode/i18n-ally-custom-framework.yml
# 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/identifiers
languageIds:
- tid
- multids
- tiddlywiki5
# 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 example shows how to detect `t("your.i18n.keys")`
# the `{key}` will be placed by a proper keypath matching regex,
# you can ignore it and use your own matching rules as well
- "<<t \"?({key})\"?>>"
- "<<t \"?({key})\"? \"?.+\"?>>"
# If set to true, only enables this custom framework (will disable all built-in frameworks)
monopoly: false Even I have a tiddlywiki plugin that contribute those languages to the VSCode. |
Beta Was this translation helpful? Give feedback.
This is not working