Skip to content

Commit ccb4c0b

Browse files
Add simplified chinese (#199) (#207)
* Add simplified chinese (#199) * Add language: Simplified Chinese * Add language: Simplified Chinese * Revert Project_Default.xml * Revert Project_Default.xml * Support android google play translation APIs --------- Co-authored-by: 佳豪 <1581465757@qq.com>
1 parent fc2a6ac commit ccb4c0b

File tree

5 files changed

+340
-1
lines changed

5 files changed

+340
-1
lines changed

.idea/inspectionProfiles/Project_Default.xml

100755100644
File mode changed.

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ android {
3535
buildConfigField "String", "GITHUB_SOURCE_URL", "\"https://github.com/ShiftHackZ/Stable-Diffusion-Android\""
3636
buildConfigField "String", "SETUP_INSTRUCTIONS_URL", "\"https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki\""
3737

38-
resourceConfigurations = ["en", "ru", "uk", "tr"]
38+
resourceConfigurations = ["en", "ru", "uk", "tr", "zh"]
3939
}
4040

4141
def hasPropertiesFile = new File("app/keystore/signing.properties").exists()

app/src/main/res/xml/locale_config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
<locale android:name="ru"/>
55
<locale android:name="uk"/>
66
<locale android:name="tr"/>
7+
<locale android:name="zh"/>
78
</locale-config>

presentation/src/main/java/com/shifthackz/aisdv1/presentation/utils/Constants.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ object Constants {
6262
"uk" to "Українська",
6363
"tr" to "Türkçe",
6464
"ru" to "Русский",
65+
"zh" to "中文简体",
6566
)
6667

6768
fun lora(alias: String) = "<lora:$alias:1>"

0 commit comments

Comments
 (0)