Skip to content

Instantly share code, notes, and snippets.

@kutanov

kutanov/en.json

Last active Apr 10, 2020
Embed
What would you like to do?
{
"title": "English title",
"hello": "Welcome",
"containers": "ng-containers are useful when you don't want to have too many html layers",
"dashboard": {
"description": "You may use scopes for structuring translations"
}
}
<ng-container *transloco='let t'>
{{ t('containers') }}
</ng-container>
<br>
<ng-container *transloco='let t; lang: "ru"'>
{{ t('containers') }}
</ng-container>
{
"title": "Русский заголовок",
"hello": "Добро пожаловать!",
"containers": "ng-containers полезны когда вам не хочется иметь слишком много уровней HTML",
"dashboard": {
"description": "Вы можете использовать scopes для структурирования перевода"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.