Last active
April 10, 2020 12:42
-
-
Save kutanov/72fb2c42f2acd74eef90cbbe3b009506 to your computer and use it in GitHub Desktop.
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
{ | |
"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" | |
} | |
} |
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
<ng-container *transloco='let t'> | |
{{ t('containers') }} | |
</ng-container> | |
<br> | |
<ng-container *transloco='let t; lang: "ru"'> | |
{{ t('containers') }} | |
</ng-container> |
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
{ | |
"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