Skip to content

Instantly share code, notes, and snippets.

@SilasRodrigues19
Last active March 15, 2023 15:34
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 SilasRodrigues19/3235be7af8818c2c92f7171e81fdc084 to your computer and use it in GitHub Desktop.
Save SilasRodrigues19/3235be7af8818c2c92f7171e81fdc084 to your computer and use it in GitHub Desktop.
/src/ts/script.ts
interface TranslationKeys {
home: string;
about: string;
services: string;
portfolio: string;
contact: string;
}
type Translations = {
pt: TranslationKeys,
en: TranslationKeys,
es: TranslationKeys
};
let translations: Translations = {
pt: {
home: 'Início',
about: 'Sobre',
services: 'Serviços',
portfolio: 'Portfólio',
contact: 'Contato',
},
en: {
home: 'YYYY',
about: 'YYY',
services: 'YYY',
portfolio: 'YYY',
contact: 'YY',
},
es: {
home: 'XXXX',
about: 'XXXX',
services: 'XXXX',
portfolio: 'XXX',
contact: 'XXXX',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment