stefalda / ReactNativeLocalization

Class to localize the ReactNative interface
MIT License
900 stars 123 forks source link

How can i put json from api into LocalizedStrings #187

Open Prajaktajangam16 opened 4 years ago

Prajaktajangam16 commented 4 years ago

I want to fetch json from api and put into localisedString

Stringsaeed commented 4 years ago

from the docs

strings.setContent({
  en:{
    how:"How do you want your egg todajsie?",
    boiledEgg:"Boiled eggsie",
    softBoiledEgg:"Soft-boiled egg",
    choice:"How to choose the egg"
  }
})
Prajaktajangam16 commented 4 years ago

Got it.thanks😊

On Tue, 5 May, 2020, 8:28 PM Muhammad Saeed, notifications@github.com wrote:

from the docs https://github.com/stefalda/ReactNativeLocalization#update--overwrite-locale

strings.setContent({ en:{ how:"How do you want your egg todajsie?", boiledEgg:"Boiled eggsie", softBoiledEgg:"Soft-boiled egg", choice:"How to choose the egg" } })

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stefalda/ReactNativeLocalization/issues/187#issuecomment-624106088, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJVOVEW2VDS3NCVFUSQ2HTRQASP5ANCNFSM4MOWOCFA .