Skip to content

Commit 311b993

Browse files
committed
fix(playground): translate comments from Russian to English
1 parent bb909d4 commit 311b993

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

playground/pages/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<p>Current Locale: {{ currentLocale }}</p>
88
<p>Current route without locale: {{ currentRouteName }}</p>
99

10-
<!-- Ссылки для переключения локалей -->
10+
<!-- Links for locale switching -->
1111
<div>
1212
<button
1313
v-for="locale in currentLocales"
@@ -122,14 +122,14 @@ function generateKeys(depth, maxKeys = 4) {
122122
const generate = (prefix = '', currentDepth = depth) => {
123123
if (currentDepth === 0) {
124124
for (let i = 0; i <= maxKeys; i++) {
125-
// Генерируем ключ с инкрементом по последнему элементу
125+
// Generate key with increment on last element
126126
keys.push(`${prefix}key${i}`)
127127
}
128128
return
129129
}
130130
131131
for (let i = 0; i <= maxKeys; i++) {
132-
// Добавляем к префиксу текущий элемент
132+
// Add current element to prefix
133133
generate(`${prefix}key${i}.`, currentDepth - 1)
134134
}
135135
}

playground/pages/page.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
Formatted Date: {{ $tdr('2023-12-31') }}
9696
</div>
9797

98-
<!-- Ссылки для переключения локалей -->
98+
<!-- Links for locale switching -->
9999
<div>
100100
<button
101101
v-for="val in $getLocales()"
@@ -131,11 +131,11 @@ type Params = Record<string, string | number | boolean>
131131
132132
const { $getLocale, $switchLocale, $getLocales, $localeRoute, $t, $tc, $tn, $td, $tdr } = useNuxtApp()
133133
134-
// Количество яблок
134+
// Number of apples
135135
const appleCount = ref(5)
136136
const locale = computed(() => $getLocale())
137137
138-
// Кастомное правило множественных форм
138+
// Custom plural rule
139139
const customPluralRule = (key: string, count: number, params: Params, _locale: string, t: Getter) => {
140140
const translation = t(key, params)
141141
if (!translation) {

0 commit comments

Comments
 (0)