How to Easily Switch Multilingual textlint Configurations in VSCode #21
Replies: 2 comments 1 reply
-
I find this use case quite interesting. In fact, I haven't seen many examples of textlint being used for multilingual documentation so far. "textlint.configAssociations": {
"**/*.md": ".textlintrc_md",
"**/*.en.md": ".textlintrc_en",
"**/*.jp.md": ".textlintrc_jp"
} In the future, it might also be interesting to implement multilingual detection logic or support managing multiple configurations directly in the core. @azu What do you think? |
Beta Was this translation helpful? Give feedback.
-
Thank you for considering this idea. It seems difficult for the VSCode extension to automatically detect the language or file type and select the appropriate configuration file. With the CLI, this can be configured, which is very convenient. Since this extension is useful, I would be happy if I could easily switch To make this a more general-purpose feature, it seems necessary to consider more use cases. Thank you so much. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for providing the excellent textlint and VSCode extension. I really appreciate your work!
Here is an idea: by creating a shared textlint project on the PC, it could be possible to easily switch between multiple language configurations using the textlint VSCode extension.
Background
Recently, documentation tools like hugo and astro have made it common to work with manuscripts in multiple languages. However, with the textlint VSCode extension, I need to manually switch the configuration file for each language, which is time-consuming as it requires opening VSCode settings and specifying the file every time.
Goal
.textlintrc_jp
,.textlintrc_en
,.textlintrc_cn
)node_modules
directory for textlint core and rulesRecommended Directory Structure (Example: Windows)
Useful Command Examples
1.
pickup textlint project
C:\textlint
).textlintrc_jp
,.textlintrc_en
, and.textlintrc_cn
are registered as presets (e.g., asTextlint: Config Paths (Array)
)C:\textlint\node_modules
is set as theTextlint: Node Path
2.
select textlint config
Textlint: Config Paths
are shown as selectable optionsTextlint: Config Path
By using this approach, I can quickly switch textlint configurations for different languages in VSCode, making multilingual documentation workflows more efficient. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions