Skip to content

Commit 2dbcb5f

Browse files
committed
style: nested translation writing style
1 parent 69fecaf commit 2dbcb5f

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

locales/en-US.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
{
2-
"service.not-found.title": "Services not found",
3-
"service.not-found.description": "Oops! You did not specify a list of services in config.yaml",
4-
"service.not-found.action": "Go to documentation",
2+
"service": {
3+
"not-found": {
4+
"title": "Services not found",
5+
"description": "Oops! You did not specify a list of services in config.yaml",
6+
"action": "Go to documentation"
7+
},
58

6-
"service.ping.description": "Server responded in",
7-
"service.ping.units": "ms",
8-
"service.ping.error": "Server not responding",
9+
"ping": {
10+
"description": "Server responded in",
11+
"units": "ms",
12+
"error": "Server not responding"
13+
}
14+
},
915

1016
"update": {
1117
"message": "A new version is available",

locales/ru-RU.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
{
2-
"service.not-found.title": "Сервисы не найдены",
3-
"service.not-found.description": "Упс! Вы не указали список сервисов в файле config.yaml",
4-
"service.not-found.action": "Перейти к документации",
2+
"service": {
3+
"not-found": {
4+
"title": "Сервисы не найдены",
5+
"description": "Упс! Вы не указали список сервисов в файле config.yaml",
6+
"action": "Перейти к документации"
7+
},
58

6-
"service.ping.description": "Время ответа сервера",
7-
"service.ping.units": "мс",
8-
"service.ping.error": "Сервер не отвечает",
9+
"ping": {
10+
"description": "Время ответа сервера",
11+
"units": "мс",
12+
"error": "Сервер не отвечает"
13+
}
14+
},
915

1016
"update": {
1117
"message": "Доступна новая версия",

0 commit comments

Comments
 (0)