ShiftHackZ / Stable-Diffusion-Android

Stable Diffusion AI client app for Android
https://sdai.moroz.cc
GNU Affero General Public License v3.0
534 stars 56 forks source link

Add simplified chinese #199

Open wang19980501 opened 2 weeks ago

wang19980501 commented 2 weeks ago

Add simplified chinese

ShiftHackZ commented 2 weeks ago

Hi, thanks for you contribution. To fully support "zh" locale with latest android translation APIs, could you also please make a few adjustments:

  1. Add "zh" locale to the file app/build.gradle at line 38 like this:
resourceConfigurations = ["en", "ru", "uk", "tr", "zh"]
  1. Add <locale android:name="zh"/> to the file app/src/main/res/xml/locale_config.xml, for example:
<locale-config>
    ...
    <locale android:name="zh"/>
</locale-config>