tinymist/locales
Myriad-Dreamin bc5960ec39
feat: support l10n message with arguments (#1508)
* feat: support l10n message with arguments

* dev: edit message

* dev: edit message

* fix: message error
2025-03-15 12:50:50 +08:00
..
README.md docs: update readme for locales folder (#1502) 2025-03-13 18:19:20 +08:00
tinymist-rt.toml feat: support l10n message with arguments (#1508) 2025-03-15 12:50:50 +08:00
tinymist-vscode-rt.toml feat: support l10n message with arguments (#1508) 2025-03-15 12:50:50 +08:00
tinymist-vscode.toml feat: profile and visualize coverage of the current document (#1490) 2025-03-15 11:49:51 +08:00

Locales

This folder provides the locale files for the applications. The format of the locale files is TOML. It looks like this:

[extension.tinymist.command.tinymist.pinMainToCurrent] # K
en = "Pin the Main file to the Opening Document" # V-en
zh-CN = "将主文件固定到当前打开的文档" # zh-CN

Explanation:

  • The key K is the key of the locale string. It is a string that is used to identify the locale string.
    • The key is extension.tinymist.command.tinymist.pinMainToCurrent in the example, wrapped in square brackets.
  • The value V-en is the English locale string, which is also the first locale string used in the application.
    • The value is "Pin the Main file to the Opening Document" in the example.
  • The value V-zh-CN is the Chinese locale string. It is used when the locale of the application is set to Chinese. The rest locale strings are sorted by alphabet order.
    • The value is "将主文件固定到当前打开的文档" in the example.

The format is designed to be easy to modified by LLM.