Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

l18n and App Settings

ANSWERED

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?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

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

Best Answer
0 Votes

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}
/> )
}

Best Answer
0 Votes