Available props
You can pass these props to Talkr's provider:
languages ({ [key: string]: string })
object containing all your json files. Typical format:
{en: {...}, fr: {...}}
defaultLanguage (string)
default language of your app (a similar key must be included in the
languageprop)
detectBrowserLanguage (boolean)
if
true, Talkr will automatically use browser language and override thedefaultLanguage. If the browser language is not included in your available translations, it will switch back todefaultLanguage. Not available in React Native. Useexpo-localizationto fetch the default user locale instead.
🤓: The auto-detect language feature will always return a simple key such as
frinstead offr_FR. Keep things simple and always declare your languages with 2 letters.