Skip to content

Instantly share code, notes, and snippets.

@ljmotta

ljmotta/english.ts

Created Aug 12, 2020
Embed
What would you like to do?
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