AccountKit UI language

為{幸葍}努か 提交于 2019-12-06 05:56:31

I've got the solution! Just change the locale of the activity which contains the account kit and the UI language will be changed automatically. Here is a list of supported languages for Account Kit.

I've added following code to achieve Bengali language in onCreate() of the activity from which the Account Kit intent is called:

 String languageToLoad = "bn";
 Locale locale = new Locale(languageToLoad);
 Configuration config = new Configuration();
 config.locale = locale;
 getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics()); 

And the result is this :

The Indonesian two letter code is usually "in" not "id".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!