diff --git a/allure-generator/src/main/javascript/translations/isv.json b/allure-generator/src/main/javascript/translations/isv.json new file mode 100644 index 000000000..56753ab15 --- /dev/null +++ b/allure-generator/src/main/javascript/translations/isv.json @@ -0,0 +1,208 @@ +{ + "chart": { + "duration": { + "empty": "Nema informacije", + "name": "Trvanje testov" + }, + "severity": { + "name": "Važnost testov" + }, + "status": { + "name": "Statusy testov" + }, + "trend": { + "empty": "Nema informacije" + } + }, + "component": { + "markToggle": { + "hideCases": "Skryj rezultaty označene kako \"{{mark}}\"", + "showCases": "Pokaži rezultaty označene kako \"{{mark}}\"" + }, + "statusToggle": { + "hideCases": "Skryj rezultaty so statusom \"{{status}}\"", + "showCases": "Pokaži rezultaty so statusom \"{{status}}\"" + }, + "tree": { + "download": "Daunloduj CSV", + "empty": "Nema informacije", + "filter": "Statusy", + "filter-marks": "Označenja", + "filtered": { + "shown_0": "{{count}} pokazany", + "shown_1": "{{count}} pokazane", + "shown_2": "{{count}} pokazane", + "total_0": "{{count}} test vsěgo", + "total_1": "{{count}} testy vsěgo", + "total_2": "{{count}} testov vsěgo" + }, + "groups": "Pokaži informaciju o grupah", + "time": { + "max": { + "name": "Najvyše dolgy", + "tooltip": "Koliko časa trval najvyše dolgy test v grupě" + }, + "sum": { + "name": "V sumě", + "tooltip": "Suma trvanij vsih testov v grupě" + }, + "total": { + "name": "Cělo", + "tooltip": "Čas od početka prvogo testa do konca poslědnogo" + } + }, + "unknown": "" + }, + "widgetStatus": { + "showAll": "Pokaži vsečto", + "total_0": "{{count}} element vsěgo", + "total_1": "{{count}} elementa vsěgo", + "total_2": "{{count}} elementov vsěgo" + } + }, + "controls": { + "backto": "Vzad do", + "clipboard": "Kopiruj do klipborda", + "clipboardError": "Pogrěška. Věrojetno, vaša prěgledka (brauzer) ne podpira kopirovanje do klipborda.", + "clipboardSuccess": "Tekst byl skopirovany", + "collapse": "Minimizuj", + "expand": "Razširi", + "fullscreen": "Na cěly ekran", + "language": "Izměni jezyk" + }, + "errors": { + "missedAttachment": "Priloga ne najdena", + "notFound": "Ne najdeno" + }, + "marks": { + "flaky": "Nestabilny", + "newBroken": "Iznova slomjeny", + "newFailed": "Iznova neuspěšny", + "newPassed": "Iznova uspěšny", + "retriesStatusChange": "Status měnjal se od proby do proby" + }, + "sorter": { + "duration": "trvanje", + "name": "nazva", + "order": "poredok", + "status": "status" + }, + "status": { + "broken": "Slomjeny", + "failed": "Neuspěšny", + "passed": "Uspěšny", + "skipped": "Propuščeny", + "unknown": "Neznany" + }, + "tab": { + "categories": { + "name": "Kategorije" + }, + "graph": { + "name": "Diagramy" + }, + "overview": { + "name": "Prěgled" + }, + "suites": { + "name": "Komplety testov" + }, + "timeline": { + "name": "Hronologija", + "selected_0": "Izbrany {{count}} test ({{percent}}%) s trvanjem vyše od {{duration}}", + "selected_1": "Izbrane {{count}} testy ({{percent}}%) s trvanjem vyše od {{duration}}", + "selected_2": "Izbrane {{count}} testov ({{percent}}%) s trvanjem vyše od {{duration}}" + } + }, + "testResult": { + "categories": { + "name": "Kategorije" + }, + "description": { + "name": "Opis" + }, + "duration": { + "name": "Trvanje" + }, + "execution": { + "body": "Tělo testa", + "name": "Izpolnjenje", + "setup": "Prigotovjenje", + "teardown": "Zaključenje" + }, + "history": { + "name": "Historija", + "successRate": "Procent uspěha" + }, + "links": { + "name": "Linky" + }, + "overview": { + "name": "Prěgled" + }, + "owner": { + "name": "Vlastnik" + }, + "parameters": { + "name": "Parametry" + }, + "retries": { + "empty": "Nema informacije o minulyh probah testa", + "name": "Minule proby" + }, + "severity": { + "name": "Važnost" + }, + "stats": { + "count": { + "attachments_0": "{{count}} priloga", + "attachments_1": "{{count}} prilogy", + "attachments_2": "{{count}} prilog", + "parameters_0": "{{count}} parametr", + "parameters_1": "{{count}} parametry", + "parameters_2": "{{count}} parametrov", + "steps_0": "{{count}} vloženy krok", + "steps_1": "{{count}} vložene kroky", + "steps_2": "{{count}} vloženyh krokov" + } + }, + "status": { + "empty": "Nema dodatnoj informacije o statusu", + "trace": "Pokaži dodatnu informaciju" + } + }, + "widget": { + "categories": { + "name": "Kategorije" + }, + "environment": { + "empty": "Nema informacije o obsrědině", + "name": "Obsrědina", + "showAll": "Pokaži vsečto" + }, + "executors": { + "empty": "Nema informacije o izpolniteljah", + "name": "Sistemy izpolnjenja testov", + "unknown": "Neznano" + }, + "launches": { + "empty": "Nema informacije o puščenjah", + "name": "Puščenja testov" + }, + "suites": { + "name": "Komplety testov" + }, + "summary": { + "aggregatedName": "Agregovany raport", + "launches_0": "puščenje testov", + "launches_1": "puščenja testov", + "launches_2": "puščenij testov", + "testResults_0": "testovy scenarij", + "testResults_1": "testove scenarije", + "testResults_2": "testovyh scenarijev" + }, + "trend": { + "name": "Trend" + } + } +} diff --git a/allure-generator/src/main/javascript/utils/translation.js b/allure-generator/src/main/javascript/utils/translation.js index bd956fa6f..e910a684a 100644 --- a/allure-generator/src/main/javascript/utils/translation.js +++ b/allure-generator/src/main/javascript/utils/translation.js @@ -1,49 +1,56 @@ -import i18next from "i18next"; -import gtag from "./gtag"; -import settings from "./settings"; - -export const LANGUAGES = [ - { id: "en", title: "English" }, - { id: "ru", title: "Русский" }, - { id: "zh", title: "中文" }, - { id: "de", title: "Deutsch" }, - { id: "nl", title: "Nederlands" }, - { id: "he", title: "Hebrew" }, - { id: "br", title: "Brazil" }, - { id: "pl", title: "Polski" }, - { id: "ja", title: "日本語" }, - { id: "es", title: "Español" }, - { id: "kr", title: "한국어" }, - { id: "fr", title: "Français" }, - { id: "az", title: "Azərbaycanca" }, - { id: "tr", title: "Türkçe" }, -]; - -LANGUAGES.map((lang) => lang.id).forEach((lang) => - addTranslation(lang, require(`../translations/${lang}`)), -); - -export function initTranslations() { - return new Promise((resolve, reject) => { - const language = settings.get("language"); - i18next.init( - { - lng: language, - interpolation: { - escapeValue: false, - }, - fallbackLng: "en", - }, - (err) => (err ? reject(err) : resolve()), - ); - gtag("init_language", { language: language || "en" }); - }); -} - -export function addTranslation(lang, json) { - i18next.on("initialized", () => { - i18next.services.resourceStore.addResourceBundle(lang, i18next.options.ns[0], json, true, true); - }); -} - -export default i18next; +import i18next from "i18next"; +import gtag from "./gtag"; +import settings from "./settings"; + +export const LANGUAGES = [ + { id: "en", title: "English" }, + { id: "ru", title: "Русский" }, + { id: "zh", title: "中文" }, + { id: "de", title: "Deutsch" }, + { id: "nl", title: "Nederlands" }, + { id: "he", title: "Hebrew" }, + { id: "br", title: "Brazil" }, + { id: "pl", title: "Polski" }, + { id: "ja", title: "日本語" }, + { id: "es", title: "Español" }, + { id: "kr", title: "한국어" }, + { id: "fr", title: "Français" }, + { id: "az", title: "Azərbaycanca" }, + { id: "tr", title: "Türkçe" }, + { id: "isv", abbr: "Ⱄ", title: "Medžuslovjansky" }, +]; + +LANGUAGES.map((lang) => lang.id).forEach((lang) => + addTranslation(lang, require(`../translations/${lang}`)), +); + +export function initTranslations() { + return new Promise((resolve, reject) => { + const language = settings.get("language"); + i18next.init( + { + lng: language, + interpolation: { + escapeValue: false, + }, + fallbackLng: "en", + }, + (err) => (err ? reject(err) : resolve()), + ); + + i18next.on("initialized", () => { + const pluralResolver = i18next.services.pluralResolver; + pluralResolver.addRule("isv", pluralResolver.getRule("be")); + }); + + gtag("init_language", { language: language || "en" }); + }); +} + +export function addTranslation(lang, json) { + i18next.on("initialized", () => { + i18next.services.resourceStore.addResourceBundle(lang, i18next.options.ns[0], json, true, true); + }); +} + +export default i18next; diff --git a/plugins/behaviors-plugin/src/dist/static/index.js b/plugins/behaviors-plugin/src/dist/static/index.js index a5eedc288..577cd2b4e 100644 --- a/plugins/behaviors-plugin/src/dist/static/index.js +++ b/plugins/behaviors-plugin/src/dist/static/index.js @@ -1,206 +1,220 @@ -'use strict'; - -allure.api.addTranslation('en', { - tab: { - behaviors: { - name: 'Behaviors' - } - }, - widget: { - behaviors: { - name: 'Features by stories', - showAll: 'show all' - } - } -}); - -allure.api.addTranslation('ru', { - tab: { - behaviors: { - name: 'Функциональность' - } - }, - widget: { - behaviors: { - name: 'Функциональность', - showAll: 'показать все' - } - } -}); - -allure.api.addTranslation('zh', { - tab: { - behaviors: { - name: '功能' - } - }, - widget: { - behaviors: { - name: '特性场景', - showAll: '显示所有' - } - } -}); - -allure.api.addTranslation('de', { - tab: { - behaviors: { - name: 'Verhalten' - } - }, - widget: { - behaviors: { - name: 'Features nach Stories', - showAll: 'Zeige alle' - } - } -}); - -allure.api.addTranslation('nl', { - tab: { - behaviors: { - name: 'Functionaliteit' - } - }, - widget: { - behaviors: { - name: 'Features en story’s', - showAll: 'Toon alle' - } - } -}); - -allure.api.addTranslation('he', { - tab: { - behaviors: { - name: 'התנהגויות' - } - }, - widget: { - behaviors: { - name: 'תכונות לפי סיפורי משתמש', - showAll: 'הצג הכול' - } - } -}); - -allure.api.addTranslation('br', { - tab: { - behaviors: { - name: 'Comportamentos' - } - }, - widget: { - behaviors: { - name: 'Funcionalidades por história', - showAll: 'Mostrar tudo' - } - } -}); - -allure.api.addTranslation('ja', { - tab: { - behaviors: { - name: '振る舞い' - } - }, - widget: { - behaviors: { - name: 'ストーリー別の機能', - showAll: '全て表示' - } - } -}); - -allure.api.addTranslation('es', { - tab: { - behaviors: { - name: 'Funcionalidades' - } - }, - widget: { - behaviors: { - name: 'Funcionalidades por Historias de Usuario', - showAll: 'mostrar todo' - } - } -}); - -allure.api.addTranslation('kr', { - tab: { - behaviors: { - name: '동작' - } - }, - widget: { - behaviors: { - name: '스토리별 기능', - showAll: '전체 보기' - } - } -}); - -allure.api.addTranslation('fr', { - tab: { - behaviors: { - name: 'Comportements' - } - }, - widget: { - behaviors: { - name: 'Thèmes par histoires', - showAll: 'Montrer tout' - } - } -}); - -allure.api.addTranslation('pl', { - tab: { - behaviors: { - name: 'Zachowania' - } - }, - widget: { - behaviors: { - name: 'Funkcje według historii', - showAll: 'pokaż wszystko' - } - } -}); - -allure.api.addTranslation('az', { - tab: { - behaviors: { - name: 'Davranışlar' - } - }, - widget: { - behaviors: { - name: 'Hekayələr üzrə xüsusiyyətlər', - showAll: 'hamısını göstər' - } - } -}); - -allure.api.addTab('behaviors', { - title: 'tab.behaviors.name', icon: 'fa fa-list', - route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)', - onEnter: (function (testGroup, testResult, testResultTab) { - return new allure.components.TreeLayout({ - testGroup: testGroup, - testResult: testResult, - testResultTab: testResultTab, - tabName: 'tab.behaviors.name', - baseUrl: 'behaviors', - url: 'data/behaviors.json', - csvUrl: 'data/behaviors.csv' - }); - }) -}); - -allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({ - rowTag: 'a', - title: 'widget.behaviors.name', - baseUrl: 'behaviors', - showLinks: true -})); +'use strict'; + +allure.api.addTranslation('en', { + tab: { + behaviors: { + name: 'Behaviors' + } + }, + widget: { + behaviors: { + name: 'Features by stories', + showAll: 'show all' + } + } +}); + +allure.api.addTranslation('ru', { + tab: { + behaviors: { + name: 'Функциональность' + } + }, + widget: { + behaviors: { + name: 'Функциональность', + showAll: 'показать все' + } + } +}); + +allure.api.addTranslation('zh', { + tab: { + behaviors: { + name: '功能' + } + }, + widget: { + behaviors: { + name: '特性场景', + showAll: '显示所有' + } + } +}); + +allure.api.addTranslation('de', { + tab: { + behaviors: { + name: 'Verhalten' + } + }, + widget: { + behaviors: { + name: 'Features nach Stories', + showAll: 'Zeige alle' + } + } +}); + +allure.api.addTranslation('nl', { + tab: { + behaviors: { + name: 'Functionaliteit' + } + }, + widget: { + behaviors: { + name: 'Features en story’s', + showAll: 'Toon alle' + } + } +}); + +allure.api.addTranslation('he', { + tab: { + behaviors: { + name: 'התנהגויות' + } + }, + widget: { + behaviors: { + name: 'תכונות לפי סיפורי משתמש', + showAll: 'הצג הכול' + } + } +}); + +allure.api.addTranslation('br', { + tab: { + behaviors: { + name: 'Comportamentos' + } + }, + widget: { + behaviors: { + name: 'Funcionalidades por história', + showAll: 'Mostrar tudo' + } + } +}); + +allure.api.addTranslation('ja', { + tab: { + behaviors: { + name: '振る舞い' + } + }, + widget: { + behaviors: { + name: 'ストーリー別の機能', + showAll: '全て表示' + } + } +}); + +allure.api.addTranslation('es', { + tab: { + behaviors: { + name: 'Funcionalidades' + } + }, + widget: { + behaviors: { + name: 'Funcionalidades por Historias de Usuario', + showAll: 'mostrar todo' + } + } +}); + +allure.api.addTranslation('kr', { + tab: { + behaviors: { + name: '동작' + } + }, + widget: { + behaviors: { + name: '스토리별 기능', + showAll: '전체 보기' + } + } +}); + +allure.api.addTranslation('fr', { + tab: { + behaviors: { + name: 'Comportements' + } + }, + widget: { + behaviors: { + name: 'Thèmes par histoires', + showAll: 'Montrer tout' + } + } +}); + +allure.api.addTranslation('pl', { + tab: { + behaviors: { + name: 'Zachowania' + } + }, + widget: { + behaviors: { + name: 'Funkcje według historii', + showAll: 'pokaż wszystko' + } + } +}); + +allure.api.addTranslation('az', { + tab: { + behaviors: { + name: 'Davranışlar' + } + }, + widget: { + behaviors: { + name: 'Hekayələr üzrə xüsusiyyətlər', + showAll: 'hamısını göstər' + } + } +}); + +allure.api.addTranslation('isv', { + tab: { + behaviors: { + name: 'Funkcionalnost', + } + }, + widget: { + behaviors: { + name: 'Funkcionalnost', + showAll: 'pokaži vsěčto', + } + } +}); + +allure.api.addTab('behaviors', { + title: 'tab.behaviors.name', icon: 'fa fa-list', + route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)', + onEnter: (function (testGroup, testResult, testResultTab) { + return new allure.components.TreeLayout({ + testGroup: testGroup, + testResult: testResult, + testResultTab: testResultTab, + tabName: 'tab.behaviors.name', + baseUrl: 'behaviors', + url: 'data/behaviors.json', + csvUrl: 'data/behaviors.csv' + }); + }) +}); + +allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({ + rowTag: 'a', + title: 'widget.behaviors.name', + baseUrl: 'behaviors', + showLinks: true +})); diff --git a/plugins/packages-plugin/src/dist/static/index.js b/plugins/packages-plugin/src/dist/static/index.js index 2989f333d..5d8bc2708 100644 --- a/plugins/packages-plugin/src/dist/static/index.js +++ b/plugins/packages-plugin/src/dist/static/index.js @@ -1,120 +1,128 @@ -'use strict'; - -allure.api.addTranslation('en', { - tab: { - packages: { - name: 'Packages' - } - } -}); - -allure.api.addTranslation('ru', { - tab: { - packages: { - name: 'Пакеты' - } - } -}); - -allure.api.addTranslation('zh', { - tab: { - packages: { - name: '包' - } - } -}); - -allure.api.addTranslation('de', { - tab: { - packages: { - name: 'Pakete' - } - } -}); - -allure.api.addTranslation('nl', { - tab: { - packages: { - name: 'Packages' - } - } -}); - -allure.api.addTranslation('he', { - tab: { - packages: { - name: 'חבילות' - } - } -}); - -allure.api.addTranslation('br', { - tab: { - packages: { - name: 'Pacotes' - } - } -}); - -allure.api.addTranslation('ja', { - tab: { - packages: { - name: 'パッケージ' - } - } -}); - -allure.api.addTranslation('es', { - tab: { - packages: { - name: 'Paquetes' - } - } -}); - -allure.api.addTranslation('kr', { - tab: { - packages: { - name: '패키지' - } - } -}); - -allure.api.addTranslation('fr', { - tab: { - packages: { - name: 'Paquets' - } - } -}); - -allure.api.addTranslation('pl', { - tab: { - packages: { - name: 'Pakiety' - } - } -}); - -allure.api.addTranslation('az', { - tab: { - packages: { - name: 'Paketlər' - } - } -}); - -allure.api.addTab('packages', { - title: 'tab.packages.name', icon: 'fa fa-align-left', - route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)', - onEnter: (function (testGroup, testResult, testResultTab) { - return new allure.components.TreeLayout({ - testGroup: testGroup, - testResult: testResult, - testResultTab: testResultTab, - tabName: 'tab.packages.name', - baseUrl: 'packages', - url: 'data/packages.json' - }); - }) -}); +'use strict'; + +allure.api.addTranslation('en', { + tab: { + packages: { + name: 'Packages' + } + } +}); + +allure.api.addTranslation('ru', { + tab: { + packages: { + name: 'Пакеты' + } + } +}); + +allure.api.addTranslation('zh', { + tab: { + packages: { + name: '包' + } + } +}); + +allure.api.addTranslation('de', { + tab: { + packages: { + name: 'Pakete' + } + } +}); + +allure.api.addTranslation('nl', { + tab: { + packages: { + name: 'Packages' + } + } +}); + +allure.api.addTranslation('he', { + tab: { + packages: { + name: 'חבילות' + } + } +}); + +allure.api.addTranslation('br', { + tab: { + packages: { + name: 'Pacotes' + } + } +}); + +allure.api.addTranslation('ja', { + tab: { + packages: { + name: 'パッケージ' + } + } +}); + +allure.api.addTranslation('es', { + tab: { + packages: { + name: 'Paquetes' + } + } +}); + +allure.api.addTranslation('kr', { + tab: { + packages: { + name: '패키지' + } + } +}); + +allure.api.addTranslation('fr', { + tab: { + packages: { + name: 'Paquets' + } + } +}); + +allure.api.addTranslation('pl', { + tab: { + packages: { + name: 'Pakiety' + } + } +}); + +allure.api.addTranslation('az', { + tab: { + packages: { + name: 'Paketlər' + } + } +}); + +allure.api.addTranslation('isv', { + tab: { + packages: { + name: 'Pakety' + } + } +}); + +allure.api.addTab('packages', { + title: 'tab.packages.name', icon: 'fa fa-align-left', + route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)', + onEnter: (function (testGroup, testResult, testResultTab) { + return new allure.components.TreeLayout({ + testGroup: testGroup, + testResult: testResult, + testResultTab: testResultTab, + tabName: 'tab.packages.name', + baseUrl: 'packages', + url: 'data/packages.json' + }); + }) +});