feat: add i18n internationalization for memo and cheatsheet - #552
Open
LuoXingchen935 wants to merge 17 commits into
Open
feat: add i18n internationalization for memo and cheatsheet#552LuoXingchen935 wants to merge 17 commits into
LuoXingchen935 wants to merge 17 commits into
Conversation
- Dynamically load locale-specific markdown content - Add comprehensive Chinese translation for git memo - Apply theme-aware styles for tables and links
Load memo markdown dynamically based on locale, add Chinese translation, and apply theme-aware styles for tables and links.
Support multiple languages for the jq memo tool by dynamically loading locale-specific markdown files based on the current i18n locale, and add the Chinese translation (jq.zh.md).
Dynamically load localized markdown files based on the current locale, falling back to the default English memo.
Load locale-specific memo content dynamically using glob import and provide the Chinese translation for the Markdown cheatsheet.
Add borders, padding, and collapse for tables, and set link color using theme variables.
- Dynamically load locale-specific content markdown based on the current language - Add Chinese translation content file - Apply theme-aware border and link colors for tables and links
- dynamically load localized content based on current locale - add Chinese (zh) translation for nginx memo - add table and link styling using theme variables - fallback to default content if localized version is missing
Load localized Markdown content based on the current locale, falling back to the default English version. Include the complete Chinese translation file.
- Dynamically load locale-specific markdown content - Add Chinese translation (tmux-memo.content.zh.md) - Fall back to default content if locale file not found
- Implement dynamic locale-based content loading - Add comprehensive Chinese translation file - Update styles for tables and links using theme variables
Load the appropriate markdown file based on the current i18n locale, falling back to the default when a localized version is not available.
Load locale-specific markdown files dynamically based on the current language setting, falling back to the default when a translation is unavailable.
- load locale-specific markdown via dynamic imports - add chmod.zh.md with detailed Chinese documentation - fall back to default chmod.md if no locale match
Add dynamic locale-based markdown loading for the Screen Memo tool and include the complete Chinese (zh) translation.
Load locale-specific markdown content dynamically based on the selected language.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds internationalization (i18n) support for the memo and cheatsheet modules, including the Chinese (zh-CN) locale translations and the corresponding i18n integration code. Users can now switch between English and Chinese seamlessly within both modules.