Skip to content

Commit aa775de

Browse files
authored
Merge pull request #3686 from cassiano/fixing-use-of-placeholders-inside-i18n
Fixing use of placeholders inside i18n
2 parents 297ebde + e158afa commit aa775de

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

client/modules/IDE/components/Preferences/index.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,10 +627,9 @@ export default function Preferences() {
627627
versionInfo.isVersion2 ? 'beta.' : ''
628628
}p5js.org/reference/p5.sound`}
629629
>
630-
{t('Preferences.SoundReference').replace(
631-
'$VERSION',
632-
versionInfo.version
633-
)}
630+
{t('Preferences.SoundReference', {
631+
version: versionInfo.version
632+
})}
634633
</a>
635634
</legend>
636635
</fieldset>

translations/locales/en-US/translations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
"DataAddon": "p5.js 1.x Compatibility Add-on Library — Data & Events",
232232
"AddonOnARIA": "on",
233233
"AddonOffARIA": "off",
234-
"SoundReference": "View the reference for p5.sound compatible with p5.js $VERSION",
234+
"SoundReference": "View the reference for p5.sound compatible with p5.js {{version}}",
235235
"CopyToClipboardSuccess": "Copied to clipboard!",
236236
"CopyToClipboardFailure": "We weren't able to copy the text, try selecting it and copying it manually."
237237
},

translations/locales/pt-BR/translations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
"PreloadAddon": "Biblioteca adicional de Compatibilidade p5.js 1.x — Pré-carregamento",
220220
"ShapesAddon": "Biblioteca adicional de Compatibilidade p5.js 1.x — Formas",
221221
"DataAddon": "Biblioteca adicional de Compatibilidade p5.js 1.x — Estruturas de Dados",
222-
"SoundReference": "Ver a referência para p5.sound compatível com p5.js $VERSION",
222+
"SoundReference": "Ver a referência para p5.sound compatível com p5.js {{version}}",
223223
"CopyToClipboardSuccess": "Copiado para a área de transferência!",
224224
"CopyToClipboardFailure": "Não conseguimos copiar o texto, tente selecioná-lo e copiá-lo manualmente."
225225
},

translations/locales/uk-UA/translations.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
"Password": "Пароль",
6969
"PasswordARIA": "Пароль",
7070
"Submit": "Увійти",
71-
"Errors": {
72-
"invalidCredentials": "Неправильна електронна пошта або пароль."
73-
}
71+
"Errors": {
72+
"invalidCredentials": "Неправильна електронна пошта або пароль."
73+
}
7474
},
7575
"LoginView": {
7676
"Title": "p5.js вебредактор | Вхід",
@@ -122,7 +122,7 @@
122122
"EmailAddress": "[email protected]",
123123
"Socials": "Соціальні мережі",
124124
"LinkDescriptions": {
125-
"Home": "Дізнайтеся більше про p5.js та нашу спільноту.",
125+
"Home": "Дізнайтеся більше про p5.js та нашу спільноту.",
126126
"Examples": "Дослідіть можливості p5.js за допомогою коротких прикладів.",
127127
"CodeOfConduct": "Читайте наш Статут спільноти та Кодекс поведінки.",
128128
"Libraries": "Розширте можливості p5.js за допомогою бібліотек, створених спільнотою.",
@@ -143,7 +143,7 @@
143143
"SettingsSaved": "Налаштування збережено.",
144144
"EmptyCurrentPass": "Ви не ввели пароль.",
145145
"IncorrectCurrentPass": "Поточний пароль неправильний",
146-
"DefaultError":"Щось пішло не так",
146+
"DefaultError": "Щось пішло не так",
147147
"UserNotFound": "Користувача не знайдено",
148148
"NetworkError": "Помилка мережі"
149149
},
@@ -228,7 +228,7 @@
228228
"DataAddon": "p5.js 1.x Compatibility Add-on Library — Data Structures",
229229
"AddonOnARIA": "так",
230230
"AddonOffARIA": "ні",
231-
"SoundReference": "Покликання на бібліотеку p5.sound, сумісну з p5.js $VERSION",
231+
"SoundReference": "Покликання на бібліотеку p5.sound, сумісну з p5.js {{version}}",
232232
"CopyToClipboardSuccess": "Скопійовано до буфера обміну!",
233233
"CopyToClipboardFailure": "Нам не вдалося скопіювати текст, спробуйте виділити його та скопіювати вручну."
234234
},
@@ -295,9 +295,9 @@
295295
"SubmitFeedback": "Надіслати відгук",
296296
"SubmitFeedbackARIA": "надіслати відгук",
297297
"AddCollectionTitle": "Додати у колекцію",
298-
"AddCollectionARIA":"додати у колекцію",
298+
"AddCollectionARIA": "додати у колекцію",
299299
"ShareTitle": "Поширити",
300-
"ShareARIA":"поширити"
300+
"ShareARIA": "поширити"
301301
},
302302
"NewFileModal": {
303303
"Title": "Додати файл",
@@ -342,7 +342,7 @@
342342
"errorShortPassword": "Пароль повинен містити щонайменше 6 символів",
343343
"errorConfirmPassword": "Введіть підтвердження пароля",
344344
"errorNewPassword": "Введіть новий пароль або залиште поточний пароль порожнім.",
345-
"errorNewPasswordRepeat":"Your New Password must differ from the current one.",
345+
"errorNewPasswordRepeat": "Your New Password must differ from the current one.",
346346
"errorEmptyUsername": "Введіть ім'я користувача.",
347347
"errorLongUsername": "Ім'я користувача має містити менше 20 символів.",
348348
"errorValidUsername": "Ім'я користувача має складатися лише з цифр, літер, крапок, тире та символа підкреслення."
@@ -497,7 +497,7 @@
497497
"Description": "опис",
498498
"NumSketches": "{{count}} скетч",
499499
"NumSketches_plural": "{{count}} скетчів",
500-
"By":"Колекція від ",
500+
"By": "Колекція від ",
501501
"NoSketches": "Немає скетчів у колекції",
502502
"TableSummary": "таблиця, що містить усі колекції",
503503
"HeaderName": "Ім'я",
@@ -561,7 +561,7 @@
561561
"Overlay": {
562562
"AriaLabel": "Закрити {{title}}"
563563
},
564-
"QuickAddList":{
564+
"QuickAddList": {
565565
"ButtonRemoveARIA": "Видалити з колекції",
566566
"ButtonAddToCollectionARIA": "Додати у колекцію",
567567
"View": "Перегляд"

0 commit comments

Comments
 (0)