Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make 'Severity' translatable #2396

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { View } from "backbone.marionette";
import { escapeExpression } from "handlebars/runtime";
import { className } from "../../decorators/index";
import translate from "../../helpers/t";

@className("pane__section")
class SeverityView extends View {
template(data) {
return data.severity
? `${translate("testResult.severity.name")}: ${escapeExpression(data.severity)}`
template({ severity }) {
return severity
? `${translate("testResult.severity.name")}: ${translate(`testResult.severity.${severity}`)}`
: "";
}

Expand Down
7 changes: 6 additions & 1 deletion allure-generator/src/main/javascript/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,12 @@
"time": "{{date}} at {{time}}"
},
"severity": {
"name": "Severity"
"name": "Severity",
"blocker": "blocker",
"critical": "critical",
"normal": "normal",
"minor": "minor",
"trivial": "trivial"
},
"stats": {
"count": {
Expand Down
7 changes: 6 additions & 1 deletion allure-generator/src/main/javascript/translations/isv.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@
"name": "Minule proby"
},
"severity": {
"name": "Važnost"
"name": "Važnost",
"blocker": "bloker",
"critical": "kritična",
"normal": "obyčajna",
"minor": "mala",
"trivial": "kosmetična"
},
"stats": {
"count": {
Expand Down
7 changes: 6 additions & 1 deletion allure-generator/src/main/javascript/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@
"name": "Powtórzenia"
},
"severity": {
"name": "Ważność"
"name": "Ważność",
"blocker": "bloker",
"critical": "krytyczna",
"normal": "zwyczajna",
"minor": "niewielka",
"trivial": "minimalna"
},
"stats": {
"count": {
Expand Down
7 changes: 6 additions & 1 deletion allure-generator/src/main/javascript/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@
"name": "Перезапуски"
},
"severity": {
"name": "Важность"
"name": "Важность",
noomorph marked this conversation as resolved.
Show resolved Hide resolved
"blocker": "блокер",
noomorph marked this conversation as resolved.
Show resolved Hide resolved
"critical": "критическая",
"normal": "обычная",
noomorph marked this conversation as resolved.
Show resolved Hide resolved
"minor": "невысокая",
"trivial": "минимальная"
noomorph marked this conversation as resolved.
Show resolved Hide resolved
},
"stats": {
"count": {
Expand Down
Loading