Closed AgoniAlways closed 6 months ago
小伙子,框架使用的是 Application 的 Resources 对象获取的字符串,你看一下用 Application 获取到字符串是不是也是中文?
两种方式貌似都没生效 我换了魅族20 不需要通过Application 方式获取资源,语言自动生效 :(
两种方式貌似都没生效 我换了魅族20 不需要通过Application 方式获取资源,语言自动生效 :(
小伙子,你确定这个回答对应着我的问题?
轮子哥,你指的是这样?
同样情况下,我换了魅族20,就是正常的
小伙子,你这个问题是语种切换的问题,和 Toast 框架没有关系吧?如果是框架的问题欢迎你反馈给我,如果不是框架的问题需要你自行解决。
Framework Version [Required]
com.github.getActivity:Toaster:12.5
Issue Description [Required]
AppCompatDelegate.setApplicationLocales(LocaleListCompat.forLanguageTags("de")) 修改语言后,语言没有切换过来,自带的Toast会自动切换语言 Toast.makeText(this@SettingActivity,R.string.str_change_success,Toast.LENGTH_SHORT).show() Toaster.showShort(R.string.str_change_success)
Steps to Reproduce [Required]
AppCompatDelegate.setApplicationLocales(LocaleListCompat.forLanguageTags("de")) 修改语言后,语言没有切换过来,自带的Toast会自动切换语言
Is the Issue Reproducible? [Required]
Yes
Project targetSdkVersion [Required]
minSdk 24 targetSdk 33
Device Information [Required]
华为Mate20
Android Version [Required]
鸿蒙OS 3.0.0 Android 10
Issue Source Channel [Required]
Encountered by myself
Is it specific to certain device models? [Required]
华为Mate20 鸿蒙OS 3.0.0 Android 10
Does the latest version of the framework have this issue? [Required]
Yes
Is the issue mentioned in the framework documentation? [Required]
No
Did you consult the framework documentation but couldn't find a solution? [Required]
Yes
Has a similar issue been reported in the issue list? [Required]
No
Have you searched the issue list but couldn't find a solution? [Required]
Yes
Can the issue be reproduced with a demo project? [Required]
Yes
Provide Error Stack Trace
No response
Provide Screenshots or Videos
Provide a Solution
No response