支持安卓13单独设置语言偏好。
This commit is contained in:
parent
a6ece8956d
commit
c1d7202dad
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".RustApplication"
|
android:name=".RustApplication"
|
||||||
|
android:localeConfig="@xml/locale_config"
|
||||||
android:hasFragileUserData="true"
|
android:hasFragileUserData="true"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
|
|
7
app/src/main/res/xml/locale_config.xml
Normal file
7
app/src/main/res/xml/locale_config.xml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<locale android:name="zh" />
|
||||||
|
<locale android:name="en" />
|
||||||
|
<locale android:name="ja" />
|
||||||
|
<locale android:name="ru" />
|
||||||
|
</locale-config>
|
Loading…
Reference in New Issue
Block a user