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

settings in different languages

I've seen a few posts on have the settings page in different languages but i've not seen an definitive answer on the best way to do this.

 

if i get the user setting for the language and save it can we not simply call the  correct array with the text in and settings with -lang on the end ?  that way the array is easy to amend adding more is easy too ?

 

function mySettings(props) {
return (
<Page>
{options.map(([title, settingsKey]) =>
<Section
title={title}>
<ColorSelect
settingsKey={settingsKey}
colors={colorSet-en_gb} />
</Section>
)}
</Page>
);
}

 

 

Best Answer
0 Votes
1 REPLY 1

Hello @sleedoh,

I found this open source app, Forecast Time by @Cmspooner, by the way really nice, that offers settings in different languages. Give it a look!

https://github.com/cmspooner/ForecastTime

Best Answer