Last active
October 31, 2018 15:19
-
-
Save btpoe/7d7da07137b227319ca2a9e2aa863cad to your computer and use it in GitHub Desktop.
i18n example
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
import text from 'text_en.json?i18n'; | |
export default [ | |
{ | |
path: `/:country(${text.country})/:state/:city/${text.profile}/:category/:name-:bbbId-:businessId`, | |
id: 'businessprofile', | |
component: BusinessProfile, | |
}, | |
{ | |
path: `/:country(${text.country})(/:state)(/:city)/${text.categories}(/:letter)`, | |
id: 'categories', | |
component: CategoriesPage, | |
}, | |
]; |
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
{ | |
"language": "en", | |
"country": "us|ca", | |
"categories": "categories", | |
"profile": "profile" | |
} |
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
{ | |
"language": "es", | |
"country": "mx", | |
"categories": "categorias", | |
"profile": "perfil" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment