[English](README.md) | **简体中文**
# ![image](https://raw.githubusercontent.com/Airsaid/AndroidLocalizePlugin/85cf5020832523ea333ad09286af55880460457a/src/main/resources/META-INF/pluginIcon.svg) AndroidLocalizePlugin
[![Plugin Version](https://img.shields.io/jetbrains/plugin/v/11174)](https://plugins.jetbrains.com/plugin/11174-androidlocalize)
[![Plugin Rating](https://img.shields.io/jetbrains/plugin/r/rating/11174)](https://plugins.jetbrains.com/plugin/11174-androidlocalize)
[![Build](https://github.com/Airsaid/AndroidLocalizePlugin/workflows/Build/badge.svg)](https://github.com/Airsaid/AndroidLocalizePlugin/actions/workflows/build.yml)
[Website](https://plugins.jetbrains.com/plugin/11174-androidlocalize) | [GitHub](https://github.com/Airsaid/AndroidLocalizePlugin) | [Issues](https://github.com/Airsaid/AndroidLocalizePlugin/issues) | [Reviews](https://plugins.jetbrains.com/plugin/11174-androidlocalize/reviews)
Android 本地化插件,支持多种语言和翻译器。
# 功能
- 多翻译器支持:
- Google 翻译。
- 微软翻译。
- 百度翻译。
- 有道翻译。
- 阿里翻译。
- DeepL 翻译。
- OpenAI ChatGPT 翻译。
- 支持最多 100+ 语言。
- 一键生成所有翻译文件。
- 支持不翻译已经存在的 string。
- 支持不翻译指定的文本。
- 支持缓存已翻译的 strings。
- 支持设置翻译间隔时间。
# 使用
- 第一步:选择 `values/strings.xml` 文件(或者是 values 目录下的任何资源文件)。
- 第二步:右键选择:“Translate to Other Languages”。
- 第三步:勾选上需要翻译的语言。
- 第四步:点击 OK。
# 预览
![image](preview/preview.gif)
![image](preview/settings.png)
# 安装
[![Install Plugin](preview/install.png)](https://plugins.jetbrains.com/plugin/11174-androidlocalize)
# 常见问题
- 问题:如何忽略不让其翻译?
回答:可以使用 [translatable 或 xliff:g](https://developer.android.com/guide/topics/resources/localization#managing-strings) 标签。示例:
```
Open Collective | 微信支付 | 支付宝 |
---|---|---|