I am using an app that have 2 languages, french and arabic and in order to do that i use this code:
Locale locale = new Locale("ar" or "fr");
Locale.setDefault(locale);
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config,
getBaseContext().getResources().getDisplayMetrics());
But the problem is that it wants the numbers to be displayed in french, i found here that i need to use these commands:
NumberFormat nf=NumberFormat.getInstance(new Locale("fr","FR"));
nf.format(i);
But it works for a single string at a time and i need to find another command to use it in the all app, so i can set the numbers to be in french in one single step