
intl solution, this tool has been further developed and encapsulated to better suit our needs..arb files and other factors not covered by this tool, the process is the same as the official solution.tencentcloud_chat_uikit_intl.dart file in your project:import 'package:tencentcloud_chat_uikit_intl/tencentcloud_chat_uikit_intl.dart';
TencentCloudChatUIKitIntl in your main widget tree using the BuildContext,before navigating to the home page:TencentCloudChatUIKitIntl.init(context);
tL10n global variable to access localized strings:String album = tL10n.album;
tencentcloud_chat_uikit_intl package in your project.tencentcloud_chat_uikit_intl repository on tool's GitHub repository: https://github.com/RoleWong/tencent_chat_intl_tool. This will create a copy of the repository under your GitHub account.git clone https://github.com/<your-username>/tencentcloud_chat_uikit_intl.git
pubspec.yaml file using dependency_overrides:dependency_overrides:tencentcloud_chat_uikit_intl:path: /path/to/your/forked/repository
/path/to/your/local/repository with the actual path to the cloned repository on your local machine.dart run tencent_cloud_chat_intl
new_language_entries.txt file in yourproject's root directory.Ensure that you follow the Flutter intl syntax standard. You can refer to the official documentation at https://docs.flutter.dev/ui/accessibility-and-localization/internationalization#adding-your-own-localized-messages.dart run tencentcloud_chat_uikit_intl command and select option A to incorporate the
new entries into the tool's built-in ARB files.dart run tencent_cloud_chat_intl command and select option B to copy the built-in language entries (ARB files) to your project directory.languages directory as needed.languages directory in your project..arb file that you are familiar with and make a copy of it.l10n_${language code}_${script code}_${country code}.arb,where language code is required, and script code and country code are optional,e.g., l10n_fr.arb for French and l10n_zh_Hant_HK.arb for Traditional Chinese for Hong
Kong.dart runtencent_cloud_chat_intl command and select option C to apply your changes.pull upstream operation whenever the Chat UIKit is updated. This ensures that your forked version contains both the entries you added or modified and the new entries we added with each version. When merging the code and resolving conflicts, please make sure that each JSON entry library remains intact.pull upstream Git operation:git remote add upstream https://github.com/RoleWong/tencent_chat_intl_tool
git fetch upstream
main or master):git checkout main
git merge upstream/main
git add .git commit -m "Merge upstream changes and resolve conflicts"
git push origin main
Language | Code | Language | Code |
Arabic | ar | Bulgarian | bg |
Croatian | hr | Czech | cs |
Danish | da | German | de |
Greek | el | English | en |
Estonian | et | Spanish | es |
Finnish | fi | French | fr |
Irish | ga | Hindi | hi |
Hungarian | hu | Hebrew | he |
Italian | it | Japanese | ja |
Korean | ko | Latvian | lv |
Lithuanian | lt | Dutch | nl |
Norwegian | no | Polish | pl |
Portuguese | pt | Swedish | sv |
Romanian | ro | Russian | ru |
Serbian | sr | Slovak | sk |
Slovenian | sl | Thai | th |
Turkish | tr | Ukrainian | uk |
Chinese (Simplified) | zh-Hans | Chinese (Traditional) | zh-Hant |
Feedback