Awesome
English | 简体中文
AndroidLocalizePlugin
<!-- Plugin description -->Website | GitHub | Issues | Reviews
Android localization plugin. supports multiple languages and multiple translators.
Features
- Multiple translator support:
- Google translator.
- Microsoft translator.
- Baidu translator.
- Youdao translator.
- Ali translator.
- DeepL translator.
- OpenAI ChatGPT translator.
- Supports up to 100+ languages.
- One key generates all translation files.
- Support no translation of existing string.
- Support for specifying that text is not translated.
- Support for caching translated strings.
- Support to set the translation interval time.
Usage
- Step 1: Select the
values/strings.xml
(or any string resource invalues
directory). - Step 2: Right click and select "Translate to Other Languages".
- Step 3: Select the languages to be translated.
- Step 4: Click OK.
Preview
Install
FAQ
-
Q: How to ignore translation?
A: Use the translatable or xliff:g tags. for example:
<string name="app_name" translatable="false">HelloAndroid</string> <string name="star_rating">Check out our 5<xliff:g id="star">\u2605</xliff:g></string> <string name="app_home_url">Visit us at <xliff:g id="application_homepage">https://github.com/Airsaid/AndroidLocalizePlugin</xliff:g></string> <string name="prod_name">Learn more at <xliff:g id="game_group">Muggle Game Studio</xliff:g></string>
Note: Display one line without extra line breaks and spaces in between.
-
Q: Translation failure: java.net.HttpRetryException: cannot retry due to redirection, in streaming mode
A: If you are using the default translation engine (Google), then you can try switching to another engine on the settings page and use your own account for translation. Because the default translation engine is not stable.
ChangeLog
Support and Donations
You can contribute and support this project by doing any of the following:
-
Star the project on GitHub.
-
Give feedback.
-
Commit PR.
-
Contribute your ideas/suggestions.
-
Share the plugin with your friends/colleagues.
-
If you like the plugin, please consider making a donation to keep the plugin active:
<table> <thead align="center"> <tr> <th><a href="https://opencollective.com/androidlocalizeplugin" target="_blank">Open Collective</a></th> <th><a href="https://pay.weixin.qq.com/index.php/public/wechatpay_en" target="_blank">WeChat Pay</a></th> <th><a href="https://global.alipay.com" target="_blank">Alipay</a></th> </tr> </thead> <tr align="center"> <td> <a href="https://opencollective.com/androidlocalizeplugin/donate" target="_blank"> <img src="https://raw.githubusercontent.com/Airsaid/Resources/master/Images/opencollective-logo.png" width=298 alt="Donate To Our Collective"> </a> </td> <td> <a href="https://pay.weixin.qq.com/index.php/public/wechatpay_en" target="_blank"> <img src="https://raw.githubusercontent.com/Airsaid/Resources/master/Images/AndroidLocalizePlugin_WeChatPay.jpg" alt="WeChat Play"> </a> </td> <td> <a href="https://global.alipay.com" target="_blank"> <img src="https://raw.githubusercontent.com/Airsaid/Resources/master/Images/AndroidLocalizePlugin_Alipay.jpg" alt="Alipay"> </a> </td> </tr> </table>
Thank you for your support!
Sponsors
License
Copyright 2018 Airsaid. https://github.com/airsaid
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.