-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
667 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# * `i18n_dir`: The directory for storing translation files | ||
# * `main_file`: The translation file for the main language | ||
# * `code_files`: The types of code files to scan | ||
# * `i18n_pattern`: The pattern to mark text that needs to be translated in the code | ||
# * `dict`: A dictionary of specific terms for translation; you can place specific translations for your project here | ||
# * `strategy`: The translation strategy | ||
# * `"diff"` means only translating new content | ||
# * `"full"` means translating all content | ||
# * `i18n_var_prefix`: The prefix used for replacement variables in the code | ||
# * `export_dir`: The export directory. If set, it will be used as the output directory for the export command. | ||
# * `i18n_var_mid`: The strategy for generating the middle part of the i18n key. Options are: | ||
# * `"filename"`: Uses the full filename, e.g. `testts` | ||
# * `"filename_noext"`: Uses the filename without its extension | ||
# * `"pathname"`: Uses the relative path of the file, replacing '/' with '_' | ||
# | ||
code_files: | ||
- src/**/*.ts | ||
- src/**/*.svelte | ||
dict: | ||
思源: SiYuan | ||
日记: daily note | ||
export_dir: src/types | ||
i18n_dir: src/i18n | ||
i18n_pattern: \(\(`(.+?)`\)\) | ||
i18n_var_mid: filename | ||
i18n_var_prefix: i18n | ||
main_file: zh_CN.yaml | ||
strategy: diff | ||
global_config: | ||
lang: zh_CN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.