Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Created August 12, 2020 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/8fe2acd17e0a684c24df2f62c8218b1e to your computer and use it in GitHub Desktop.
Save ljmotta/8fe2acd17e0a684c24df2f62c8218b1e to your computer and use it in GitHub Desktop.
const english: MyDictionary = {
inputName: "Please, enter your name",
welcome: (name) => `Welcome ${name.bold()}`,
home: {
title: "This is a React i18n library!",
body: "Use i18n on your TypeScript projects!"
},
currentLocale: (locale) => `My current locale is: ${locale}`
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment