Skip to content

Instantly share code, notes, and snippets.

@jhannes
Created October 29, 2020 23:00
Show Gist options
  • Save jhannes/52bc142f7b381cf955d699aceb42ef8d to your computer and use it in GitHub Desktop.
Save jhannes/52bc142f7b381cf955d699aceb42ef8d to your computer and use it in GitHub Desktop.
Localization with TypeScript and React context
const english: ApplicationTexts = {
standardTexts: {
submit: "Submit",
},
personTexts: {
givenName: "First name",
familyName: "Last name",
title: "Title",
header: "Enter your details"
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment