Skip to content

Instantly share code, notes, and snippets.

@jhannes
Last active October 29, 2020 23:07
Show Gist options
  • Save jhannes/9a9282ddb10c8f5b21c21e4c65fd3e7f to your computer and use it in GitHub Desktop.
Save jhannes/9a9282ddb10c8f5b21c21e4c65fd3e7f to your computer and use it in GitHub Desktop.
Localization with TypeScript and React context
interface ApplicationTexts {
standardTexts: {
submit: string;
};
personTexts: {
givenName: string;
familyName: string;
title: string;
header: string;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment