02-28-2020 09:41
02-28-2020 09:41
I am using localization in my app which is working fine, however I had a customer reach out from France where their phone is set to French, but my App Settings are still in English.
Is there a place to localize the settings? Or do these need to exist in the .po files?
Answered! Go to the Best Answer.
02-28-2020 10:15
02-28-2020 10:15
You need to have your po files in the settings folder, and use gettext(). There's an example here https://github.com/Fitbit/sdk-i18n/tree/master/settings
02-28-2020 10:15
02-28-2020 10:15
You need to have your po files in the settings folder, and use gettext(). There's an example here https://github.com/Fitbit/sdk-i18n/tree/master/settings
02-28-2020 11:58
02-28-2020 11:58
How would you use this when using a info.map
const userInfo = [
['Label 1', 'placeholder 1', 'settingskey1'],
['Label 2', 'placeholder 2', 'settingskey2'],
['Label 3', 'placeholder 3', 'settingskey3'],
];
userInfo.map(([label, placeholder, settingsKey]) =>
<TextInput
label={label}
placeholder={placeholder}
settingsKey={settingsKey}
/> )
}