From 8363e860632cafa41587aebfd276febb85daa099 Mon Sep 17 00:00:00 2001 From: TrueBankai416 Date: Fri, 30 Jan 2026 19:20:36 -0500 Subject: [PATCH 1/4] security: replace hardcoded API token with environment variable --- crowdin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crowdin.yml b/crowdin.yml index 9608bcaf0..0671be2aa 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,5 +1,5 @@ project_id: Bankai-Tech -api_token_env: 50570e99dc7d439e9f27df05676e5a235d645de5c5e9401091c385d464eaaf8377af21851d5f7cd1 +api_token_env: CROWDIN_PERSONAL_TOKEN preserve_hierarchy: 1 files: - source: /i18n/en/**/*.json From f0a6562687908d18c4d3a2729921eeef289a0ec0 Mon Sep 17 00:00:00 2001 From: TrueBankai416 <97103466+TrueBankai416@users.noreply.github.com> Date: Fri, 30 Jan 2026 19:25:32 -0500 Subject: [PATCH 2/4] Add localized badge to README Added a localized badge to the README. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ba51527d6..800631911 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ ![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/TrueBankai416/BankaiTechDocs) ![Docker Pulls](https://img.shields.io/docker/pulls/bankaitech/nextcloud?label=nextcloud%20docker%20pulls) ![Discord](https://img.shields.io/discord/1217932881301737523?label=Discord) +![localized](https://badges.crowdin.net/bankai-tech/localized.svg) This repository contains the source code for [My Homelab](https://docs.bankai-tech.com) documentation. Built with [Docusaurus 3](https://docusaurus.io/), a modern static website generator. From 63cc09e6ce10a2e106be15581f9fa5e63f12f7a2 Mon Sep 17 00:00:00 2001 From: TrueBankai416 Date: Fri, 30 Jan 2026 19:30:00 -0500 Subject: [PATCH 3/4] refactor: update crowdin.yml to match Docusaurus official example - Add mdx_v1_2 parser for compatibility with Docusaurus MDX syntax - Separate MDX and MD file handling with ignore rules - Add comments for clarity - Use proper YAML boolean for preserve_hierarchy --- crowdin.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/crowdin.yml b/crowdin.yml index 0671be2aa..2d334a1c9 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,10 +1,25 @@ -project_id: Bankai-Tech +# Your Crowdin credentials +project_id: 'Bankai-Tech' api_token_env: CROWDIN_PERSONAL_TOKEN -preserve_hierarchy: 1 + +# Choose file structure in Crowdin +preserve_hierarchy: true + +# MDX file type - use v1.2 parser for compatibility with Docusaurus +mdx_file_type: &mdx_file_type mdx_v1_2 + +# Files configuration files: + # JSON translation files (code.json, navbar.json, footer.json, etc.) - source: /i18n/en/**/*.json translation: /i18n/%two_letters_code%/**/%original_file_name% - - source: /docs/**/*.md - translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name% + + # MDX files in docs - source: /docs/**/*.mdx translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name% + type: *mdx_file_type + + # Markdown files in docs (ignore MDX files) + - source: /docs/**/* + translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name% + ignore: [/**/*.mdx] From 9c342aab6cb78497132ea57f75c0eeebd887b3c5 Mon Sep 17 00:00:00 2001 From: TrueBankai416 Date: Fri, 30 Jan 2026 19:33:20 -0500 Subject: [PATCH 4/4] feat: add language mappings for multi-locale support - Map pt-BR (Portuguese, Brazilian) to preserve hyphenated locale code - Map zh-CN (Chinese Simplified) to preserve region code - Map zh-TW (Chinese Traditional) to preserve region code - Apply languages_mapping to all file sources --- crowdin.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crowdin.yml b/crowdin.yml index 2d334a1c9..a8789ace8 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -5,6 +5,13 @@ api_token_env: CROWDIN_PERSONAL_TOKEN # Choose file structure in Crowdin preserve_hierarchy: true +# Language mapping for locales that need special handling +languages_mapping: &languages_mapping + two_letters_code: + pt-BR: pt-BR + zh-CN: zh-CN + zh-TW: zh-TW + # MDX file type - use v1.2 parser for compatibility with Docusaurus mdx_file_type: &mdx_file_type mdx_v1_2 @@ -13,13 +20,16 @@ files: # JSON translation files (code.json, navbar.json, footer.json, etc.) - source: /i18n/en/**/*.json translation: /i18n/%two_letters_code%/**/%original_file_name% + languages_mapping: *languages_mapping # MDX files in docs - source: /docs/**/*.mdx translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name% + languages_mapping: *languages_mapping type: *mdx_file_type # Markdown files in docs (ignore MDX files) - source: /docs/**/* translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name% + languages_mapping: *languages_mapping ignore: [/**/*.mdx]