Skip to content

Commit

Permalink
chore: upload translations for service catalog and ticket fields
Browse files Browse the repository at this point in the history
  • Loading branch information
gosiexon-zen committed Dec 19, 2024
1 parent d29494d commit 029695a
Show file tree
Hide file tree
Showing 263 changed files with 2,359 additions and 89 deletions.
5 changes: 4 additions & 1 deletion bin/update-modules-translations.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
* This script is used for downloading the latest Zendesk official translation files for the modules in the `src/module` folder.
*
*/
import { writeFile } from "node:fs/promises";
import { writeFile, mkdir } from "node:fs/promises";
import { resolve } from "node:path";

/**
* Maps each folder in the `src/modules` directory with its package name on the translation system
*/
const MODULES = {
"new-request-form": "new-request-form",
"service-catalog": "service-catalog",
"ticket-fields": "cph-theme-ticket-fields",
};

const BASE_URL = `https://static.zdassets.com/translations`;
Expand All @@ -37,6 +39,7 @@ async function fetchModuleTranslations(moduleName, packageName) {
process.cwd(),
`src/modules/${moduleName}/translations/locales`
);
await mkdir(outputDir, { recursive: true });

const { json } = await manifestResponse.json();

Expand Down
7 changes: 6 additions & 1 deletion src/modules/new-request-form/translations/en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ parts:
title: "[A11Y] Hidden label for screen readers, describing an empty option in a dropdown"
screenshot: "https://drive.google.com/file/d/1enaOJceIEIVn_uYqvaF4AHlE1_RIpjqe/view?usp=drive_link"
value: "Select an option"
obsolete: "2025-19-03"
- translation:
key: "new-request-form.suggested-articles"
title: "Title for the suggested articles section"
Expand Down Expand Up @@ -156,18 +157,22 @@ parts:
title: "Additional label shown above the credit card field, informing the user that only the last 4 digits are required."
screenshot: "https://drive.google.com/file/d/13Pz2p5q7FHX9FKT6MUR6Sg5vWy55X0kP/view?usp=drive_link"
value: "(Last 4 digits)"
obsolete: "2025-19-03"
- translation:
key: "new-request-form.lookup-field.loading-options"
title: "Message shown in combobox when searched options are loading"
screenshot: "https://drive.google.com/file/d/1_TeqU5hihEJb03q6adVI0-nuklYask1d/view?usp=drive_link"
value: "Loading items..."
obsolete: "2025-19-03"
- translation:
key: "new-request-form.lookup-field.no-matches-found"
title: "Message shown in combobox when searched option is not found"
screenshot: "https://drive.google.com/file/d/1zwRLhFj0I0N0JV07O7wpoEZO5tBBK8JF/view?usp=drive_link"
value: "No matches found"
obsolete: "2025-19-03"
- translation:
key: "new-request-form.lookup-field.placeholder"
title: "Placeholder shown in combobox, {{label}} will be replaced by field label"
screenshot: "https://drive.google.com/file/d/1nlnj_I-L7bkIs9Hn93Btrl8bh_HJfL6h/view?usp=drive_link"
value: "Search {{label}}"
value: "Search {{label}}"
obsolete: "2025-19-03"
4 changes: 3 additions & 1 deletion src/modules/new-request-form/translations/locales/af.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"new-request-form.answer-bot-modal.footer-content": "If it does, we can close your recent request {{requestId}}",
"new-request-form.answer-bot-modal.footer-title": "Does this article answer your question?",
"new-request-form.answer-bot-modal.mark-irrelevant": "No, I need help",
"new-request-form.answer-bot-modal.request-closed": "Nice. Your request has been closed.",
"new-request-form.answer-bot-modal.request-submitted": "Your request was successfully submitted",
Expand All @@ -10,8 +9,11 @@
"new-request-form.answer-bot-modal.view-article": "View article",
"new-request-form.attachments.choose-file-label": "Choose a file or drag and drop here",
"new-request-form.attachments.drop-files-label": "Drop files here",
"new-request-form.attachments.file": "File: {{fileName}}, press delete to remove",
"new-request-form.attachments.remove-file": "Remove file",
"new-request-form.attachments.remove-file-aria-label": "Remove file: {{fileName}}",
"new-request-form.attachments.stop-upload": "Stop upload",
"new-request-form.attachments.stop-upload-aria-label": "Stop uploading {{fileName}}",
"new-request-form.attachments.upload-error-description": "There was an error uploading {{fileName}}. Try again or upload another file.",
"new-request-form.attachments.upload-error-title": "Upload error",
"new-request-form.attachments.uploading": "Uploading {{fileName}}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"new-request-form.answer-bot-modal.footer-content": "[ผู้龍ḬḬϝ ḭḭṭ ḍṓṓḛḛṡ, ẁḛḛ ͼααṇ ͼḽṓṓṡḛḛ ẏẏṓṓṵṵṛ ṛḛḛͼḛḛṇṭ ṛḛḛʠṵṵḛḛṡṭ {{requestId}}龍ผู้]",
"new-request-form.answer-bot-modal.footer-title": "[ผู้龍Ḍṓṓḛḛṡ ṭḥḭḭṡ ααṛṭḭḭͼḽḛḛ ααṇṡẁḛḛṛ ẏẏṓṓṵṵṛ ʠṵṵḛḛṡṭḭḭṓṓṇ?龍ผู้]",
"new-request-form.answer-bot-modal.mark-irrelevant": "[ผู้龍Ṅṓṓ, ḬḬ ṇḛḛḛḛḍ ḥḛḛḽṗ龍ผู้]",
"new-request-form.answer-bot-modal.request-closed": "[ผู้龍Ṅḭḭͼḛḛ. ŶŶṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ ḥααṡ ḅḛḛḛḛṇ ͼḽṓṓṡḛḛḍ.龍ผู้]",
"new-request-form.answer-bot-modal.request-submitted": "[ผู้龍ŶŶṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ ẁααṡ ṡṵṵͼͼḛḛṡṡϝṵṵḽḽẏẏ ṡṵṵḅṃḭḭṭṭḛḛḍ龍ผู้]",
Expand All @@ -10,8 +9,11 @@
"new-request-form.answer-bot-modal.view-article": "[ผู้龍Ṿḭḭḛḛẁ ααṛṭḭḭͼḽḛḛ龍ผู้]",
"new-request-form.attachments.choose-file-label": "[ผู้龍Ḉḥṓṓṓṓṡḛḛ αα ϝḭḭḽḛḛ ṓṓṛ ḍṛααḡ ααṇḍ ḍṛṓṓṗ ḥḛḛṛḛḛ龍ผู้]",
"new-request-form.attachments.drop-files-label": "[ผู้龍Ḍṛṓṓṗ ϝḭḭḽḛḛṡ ḥḛḛṛḛḛ龍ผู้]",
"new-request-form.attachments.file": "[ผู้龍Ḟḭḭḽḛḛ: {{fileName}}, ṗṛḛḛṡṡ ḍḛḛḽḛḛṭḛḛ ṭṓṓ ṛḛḛṃṓṓṽḛḛ龍ผู้]",
"new-request-form.attachments.remove-file": "[ผู้龍Ṛḛḛṃṓṓṽḛḛ ϝḭḭḽḛḛ龍ผู้]",
"new-request-form.attachments.remove-file-aria-label": "[ผู้龍Ṛḛḛṃṓṓṽḛḛ ϝḭḭḽḛḛ: {{fileName}}龍ผู้]",
"new-request-form.attachments.stop-upload": "[ผู้龍Ṣṭṓṓṗ ṵṵṗḽṓṓααḍ龍ผู้]",
"new-request-form.attachments.stop-upload-aria-label": "[ผู้龍Ṣṭṓṓṗ ṵṵṗḽṓṓααḍḭḭṇḡ {{fileName}}龍ผู้]",
"new-request-form.attachments.upload-error-description": "[ผู้龍Ṫḥḛḛṛḛḛ ẁααṡ ααṇ ḛḛṛṛṓṓṛ ṵṵṗḽṓṓααḍḭḭṇḡ {{fileName}}. Ṫṛẏẏ ααḡααḭḭṇ ṓṓṛ ṵṵṗḽṓṓααḍ ααṇṓṓṭḥḛḛṛ ϝḭḭḽḛḛ.龍ผู้]",
"new-request-form.attachments.upload-error-title": "[ผู้龍ṲṲṗḽṓṓααḍ ḛḛṛṛṓṓṛ龍ผู้]",
"new-request-form.attachments.uploading": "[ผู้龍ṲṲṗḽṓṓααḍḭḭṇḡ {{fileName}}龍ผู้]",
Expand Down
4 changes: 3 additions & 1 deletion src/modules/new-request-form/translations/locales/ar.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"new-request-form.answer-bot-modal.footer-content": "في هذه الحالة يمكننا إغلاق الطلب الأخير {{requestId}}",
"new-request-form.answer-bot-modal.footer-title": "هل يجيب هذا المقال عن سؤالك؟",
"new-request-form.answer-bot-modal.mark-irrelevant": "كلا، أحتاج إلى مساعدة",
"new-request-form.answer-bot-modal.request-closed": "رائع. تم إغلاق طلبك.",
"new-request-form.answer-bot-modal.request-submitted": "تم إرسال طلبك بنجاح",
Expand All @@ -10,8 +9,11 @@
"new-request-form.answer-bot-modal.view-article": "عرض المقال",
"new-request-form.attachments.choose-file-label": "اختر ملفًا أو قم بالسحب والإسقاط هنا",
"new-request-form.attachments.drop-files-label": "أسقِط الملفات هنا",
"new-request-form.attachments.file": "الملف: {{fileName}}، اضغط على حذف لإزالته",
"new-request-form.attachments.remove-file": "إزالة الملف",
"new-request-form.attachments.remove-file-aria-label": "إزالة الملف: {{fileName}}",
"new-request-form.attachments.stop-upload": "إيقاف التحميل",
"new-request-form.attachments.stop-upload-aria-label": "توقف عن تحميل {{fileName}}",
"new-request-form.attachments.upload-error-description": "حدث خطأ أثناء تحميل {{fileName}}. حاول مرة أخرى أو قم بتحميل ملف آخر.",
"new-request-form.attachments.upload-error-title": "خطأ في التحميل",
"new-request-form.attachments.uploading": "جارٍ تحميل {{fileName}}",
Expand Down
4 changes: 3 additions & 1 deletion src/modules/new-request-form/translations/locales/az.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"new-request-form.answer-bot-modal.footer-content": "If it does, we can close your recent request {{requestId}}",
"new-request-form.answer-bot-modal.footer-title": "Does this article answer your question?",
"new-request-form.answer-bot-modal.mark-irrelevant": "No, I need help",
"new-request-form.answer-bot-modal.request-closed": "Nice. Your request has been closed.",
"new-request-form.answer-bot-modal.request-submitted": "Your request was successfully submitted",
Expand All @@ -10,8 +9,11 @@
"new-request-form.answer-bot-modal.view-article": "View article",
"new-request-form.attachments.choose-file-label": "Choose a file or drag and drop here",
"new-request-form.attachments.drop-files-label": "Drop files here",
"new-request-form.attachments.file": "File: {{fileName}}, press delete to remove",
"new-request-form.attachments.remove-file": "Remove file",
"new-request-form.attachments.remove-file-aria-label": "Remove file: {{fileName}}",
"new-request-form.attachments.stop-upload": "Stop upload",
"new-request-form.attachments.stop-upload-aria-label": "Stop uploading {{fileName}}",
"new-request-form.attachments.upload-error-description": "There was an error uploading {{fileName}}. Try again or upload another file.",
"new-request-form.attachments.upload-error-title": "Upload error",
"new-request-form.attachments.uploading": "Uploading {{fileName}}",
Expand Down
4 changes: 3 additions & 1 deletion src/modules/new-request-form/translations/locales/be.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"new-request-form.answer-bot-modal.footer-content": "Если да, мы можем закрыть запрос {{requestId}}",
"new-request-form.answer-bot-modal.footer-title": "Есть ли в этой статье ответ на вопрос?",
"new-request-form.answer-bot-modal.mark-irrelevant": "Нет, мне нужна помощь",
"new-request-form.answer-bot-modal.request-closed": "Превосходно. Запрос закрыт.",
"new-request-form.answer-bot-modal.request-submitted": "Ваш запрос отправлен",
Expand All @@ -10,8 +9,11 @@
"new-request-form.answer-bot-modal.view-article": "Просмотреть статью",
"new-request-form.attachments.choose-file-label": "Выберите файл или перетащите его сюда",
"new-request-form.attachments.drop-files-label": "Перетащите файлы сюда",
"new-request-form.attachments.file": "Файл: «{{fileName}}», нажмите «Удалить» для удаления",
"new-request-form.attachments.remove-file": "Удалить файл",
"new-request-form.attachments.remove-file-aria-label": "Удалить файл: {{fileName}}",
"new-request-form.attachments.stop-upload": "Остановить выкладывание",
"new-request-form.attachments.stop-upload-aria-label": "Остановить выкладывание {{fileName}}",
"new-request-form.attachments.upload-error-description": "Ошибка при выкладывании {{fileName}}. Повторите попытку или выложите другой файл.",
"new-request-form.attachments.upload-error-title": "Ошибка выкладывания",
"new-request-form.attachments.uploading": "Выкладывание {{fileName}}",
Expand Down
4 changes: 3 additions & 1 deletion src/modules/new-request-form/translations/locales/bg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"new-request-form.answer-bot-modal.footer-content": "Ако отговаря, можем да затворим заявката {{requestId}}",
"new-request-form.answer-bot-modal.footer-title": "Отговори ли тази статия на въпроса ви?",
"new-request-form.answer-bot-modal.mark-irrelevant": "Не, трябва ми помощ",
"new-request-form.answer-bot-modal.request-closed": "Чудесно. Заявката е затворена.",
"new-request-form.answer-bot-modal.request-submitted": "Заявката ви беше подадена успешно",
Expand All @@ -10,8 +9,11 @@
"new-request-form.answer-bot-modal.view-article": "Преглед на статията",
"new-request-form.attachments.choose-file-label": "Изберете файл или го плъзнете и пуснете тук",
"new-request-form.attachments.drop-files-label": "Пуснете файловете тук",
"new-request-form.attachments.file": "Файл: {{fileName}}, натиснете „Изтриване“ за премахване",
"new-request-form.attachments.remove-file": "Премахване на файл",
"new-request-form.attachments.remove-file-aria-label": "Премахване на файл: {{fileName}}",
"new-request-form.attachments.stop-upload": "Спиране на качването",
"new-request-form.attachments.stop-upload-aria-label": "Спиране на качването на {{fileName}}",
"new-request-form.attachments.upload-error-description": "Възникна грешка при качването на {{fileName}}. Опитайте отново или качете друг файл.",
"new-request-form.attachments.upload-error-title": "Грешка при качването",
"new-request-form.attachments.uploading": "Качва се {{fileName}}",
Expand Down
4 changes: 3 additions & 1 deletion src/modules/new-request-form/translations/locales/bn.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"new-request-form.answer-bot-modal.footer-content": "If it does, we can close your recent request {{requestId}}",
"new-request-form.answer-bot-modal.footer-title": "Does this article answer your question?",
"new-request-form.answer-bot-modal.mark-irrelevant": "No, I need help",
"new-request-form.answer-bot-modal.request-closed": "Nice. Your request has been closed.",
"new-request-form.answer-bot-modal.request-submitted": "Your request was successfully submitted",
Expand All @@ -10,8 +9,11 @@
"new-request-form.answer-bot-modal.view-article": "View article",
"new-request-form.attachments.choose-file-label": "Choose a file or drag and drop here",
"new-request-form.attachments.drop-files-label": "Drop files here",
"new-request-form.attachments.file": "File: {{fileName}}, press delete to remove",
"new-request-form.attachments.remove-file": "Remove file",
"new-request-form.attachments.remove-file-aria-label": "Remove file: {{fileName}}",
"new-request-form.attachments.stop-upload": "Stop upload",
"new-request-form.attachments.stop-upload-aria-label": "Stop uploading {{fileName}}",
"new-request-form.attachments.upload-error-description": "There was an error uploading {{fileName}}. Try again or upload another file.",
"new-request-form.attachments.upload-error-title": "Upload error",
"new-request-form.attachments.uploading": "Uploading {{fileName}}",
Expand Down
4 changes: 3 additions & 1 deletion src/modules/new-request-form/translations/locales/bs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"new-request-form.answer-bot-modal.footer-content": "If it does, we can close your recent request {{requestId}}",
"new-request-form.answer-bot-modal.footer-title": "Does this article answer your question?",
"new-request-form.answer-bot-modal.mark-irrelevant": "No, I need help",
"new-request-form.answer-bot-modal.request-closed": "Nice. Your request has been closed.",
"new-request-form.answer-bot-modal.request-submitted": "Your request was successfully submitted",
Expand All @@ -10,8 +9,11 @@
"new-request-form.answer-bot-modal.view-article": "View article",
"new-request-form.attachments.choose-file-label": "Choose a file or drag and drop here",
"new-request-form.attachments.drop-files-label": "Drop files here",
"new-request-form.attachments.file": "File: {{fileName}}, press delete to remove",
"new-request-form.attachments.remove-file": "Remove file",
"new-request-form.attachments.remove-file-aria-label": "Remove file: {{fileName}}",
"new-request-form.attachments.stop-upload": "Stop upload",
"new-request-form.attachments.stop-upload-aria-label": "Stop uploading {{fileName}}",
"new-request-form.attachments.upload-error-description": "There was an error uploading {{fileName}}. Try again or upload another file.",
"new-request-form.attachments.upload-error-title": "Upload error",
"new-request-form.attachments.uploading": "Uploading {{fileName}}",
Expand Down
4 changes: 3 additions & 1 deletion src/modules/new-request-form/translations/locales/ca.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"new-request-form.answer-bot-modal.footer-content": "De ser así, podemos cerrar la reciente solicitud {{requestId}}",
"new-request-form.answer-bot-modal.footer-title": "¿Responde la pregunta este artículo?",
"new-request-form.answer-bot-modal.mark-irrelevant": "No, necesito ayuda",
"new-request-form.answer-bot-modal.request-closed": "Excelente. La solicitud fue cerrada.",
"new-request-form.answer-bot-modal.request-submitted": "Su solicitud se envió correctamente.",
Expand All @@ -10,8 +9,11 @@
"new-request-form.answer-bot-modal.view-article": "Ver artículo",
"new-request-form.attachments.choose-file-label": "Elegir un archivo o arrastrar y soltar uno aquí",
"new-request-form.attachments.drop-files-label": "Suelte los archivos aquí",
"new-request-form.attachments.file": "Archivo: {{fileName}} presione Borrar para eliminar",
"new-request-form.attachments.remove-file": "Eliminar archivo",
"new-request-form.attachments.remove-file-aria-label": "Eliminar archivo: {{fileName}}",
"new-request-form.attachments.stop-upload": "Detener carga",
"new-request-form.attachments.stop-upload-aria-label": "Dejar de cargar {{fileName}}",
"new-request-form.attachments.upload-error-description": "Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.",
"new-request-form.attachments.upload-error-title": "Error de carga",
"new-request-form.attachments.uploading": "Cargando {{fileName}}",
Expand Down
4 changes: 3 additions & 1 deletion src/modules/new-request-form/translations/locales/cs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"new-request-form.answer-bot-modal.footer-content": "Pokud ano, můžeme uzavřít nedávný požadavek {{requestId}}",
"new-request-form.answer-bot-modal.footer-title": "Odpověděl tento článek na vaši otázku?",
"new-request-form.answer-bot-modal.mark-irrelevant": "Ne, potřebuji pomoc",
"new-request-form.answer-bot-modal.request-closed": "Prima. Požadavek byl uzavřen.",
"new-request-form.answer-bot-modal.request-submitted": "Váš požadavek byl úspěšně odeslán.",
Expand All @@ -10,8 +9,11 @@
"new-request-form.answer-bot-modal.view-article": "Zobrazit článek",
"new-request-form.attachments.choose-file-label": "Vyberte soubor nebo ho sem přetáhněte",
"new-request-form.attachments.drop-files-label": "Sem přetáhněte soubory.",
"new-request-form.attachments.file": "Soubor: {{fileName}}, stisknutím klávesy delete jej smažete",
"new-request-form.attachments.remove-file": "Odstranit soubor",
"new-request-form.attachments.remove-file-aria-label": "Odstranit soubor: {{fileName}}",
"new-request-form.attachments.stop-upload": "Zastavit upload",
"new-request-form.attachments.stop-upload-aria-label": "Zastavit nahrávání souboru {{fileName}}",
"new-request-form.attachments.upload-error-description": "Při uploadování souboru {{fileName}}došlo k chybě. Zkuste to znovu nebo uploadujte jiný soubor.",
"new-request-form.attachments.upload-error-title": "Chyba při uploadu",
"new-request-form.attachments.uploading": "Uploaduje se soubor {{fileName}}",
Expand Down
Loading

0 comments on commit 029695a

Please sign in to comment.