Last active
March 15, 2023 15:34
-
-
Save SilasRodrigues19/3235be7af8818c2c92f7171e81fdc084 to your computer and use it in GitHub Desktop.
/src/ts/script.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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