react-localization icon indicating copy to clipboard operation
react-localization copied to clipboard

Support for externally stored strings

Open halvardssm opened this issue 7 years ago • 1 comments

Hi! I am in the middle of integrating localization in my project, but I was wondering if there is there a way to include strings stored in ex. a Google sheet, or a separate repo, which it fetches every X amount of time?

halvardssm avatar Feb 18 '19 09:02 halvardssm

What about something like this:

const stringsJson = await fetch('https://somesitewithmystrings.com/strings.json')
let strings = new LocalizedStrings(stringsJson)

:-)

beatlecz avatar Mar 08 '19 12:03 beatlecz