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

add UA to i18n #747

Merged
merged 2 commits into from
Nov 30, 2022
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
107 changes: 107 additions & 0 deletions config/locales/ua.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
---
ua:
datetime:
distance_in_words:
about_x_hours:
few: близько %{count} години
many: близько %{count} годин
one: близько 1 години
other: близько %{count} години
about_x_months:
few: близько %{count} місяців
many: близько %{count} місяців
one: близько 1 місяцю
other: близько %{count} місяцю
about_x_years:
few: близько %{count} років
many: близько %{count} років
one: близько 1 року
other: близько %{count} років
almost_x_years:
few: майже %{count} роки
many: майже %{count} років
one: майже 1 рік
other: майже %{count} років
half_a_minute: пів хвилини
less_than_x_minutes:
few: менше %{count} хвилин
many: менше %{count} хвилин
one: менше 1 хвилини
other: менше %{count} хвилини
less_than_x_seconds:
few: менше %{count} секунд
many: менше %{count} секунд
one: менше 1 секунди
other: менше %{count} секунди
over_x_years:
few: більше %{count} років
many: більше %{count} років
one: більше 1 року
other: більше %{count} років
x_days:
few: "%{count} дня"
many: "%{count} днів"
one: 1 день
other: "%{count} дня"
x_minutes:
few: "%{count} хвилини"
many: "%{count} хвилин"
one: 1 хвилину
other: "%{count} хвилини"
x_months:
few: "%{count} місяцю"
many: "%{count} місяців"
one: 1 місяць
other: "%{count} місяцю"
x_seconds:
few: "%{count} секунди"
many: "%{count} секунд"
one: 1 секунду
other: "%{count} секунди"
x_years:
few: "%{count} року"
many: "%{count} років"
one: 1 рік
other: "%{count} року"
duration:
hours: "%{hour}h %{min}m"
less_than_10_seconds: "%{sec}s"
milliseconds: "%{ms}мс"
minutes: "%{min}м %{sec}с"
seconds: "%{sec}s"
good_job:
shared:
footer:
last_update_html: Оснаннє оновлення <time id="page-updated-at" datetime="%{time}">%{time}</time>
wording: Запам'ятай, ти теж робиш Good Job!
navbar:
cron_schedules: Cron
jobs: Задачі
live_poll: Живе Опитування
name: "GoodJob 👍"
processes: Процеси
status:
discarded: Відхилено
queued: В черзі
retried: Повторна спроба
running: Біг
scheduled: за розкладом
succeeded: вдалося
number:
format:
delimiter: " "
separator: ","
human:
decimal_units:
format: "%n%u"
units:
billion: Блн
million: Млн
quadrillion: Q
thousand: Тис
trillion: Трил
unit: ''
format:
delimiter: " "
precision: 3
separator: ","
11 changes: 11 additions & 0 deletions spec/system/i18n_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,16 @@
end
expect(page).to have_content "Procesos"
end

it "changes wording from English to Ukrainian" do
visit good_job_path(locale: :en)

expect(page).to have_content "Processes"
find_by_id('localeOptions').click
within ".navbar" do
click_on "ua"
end
expect(page).to have_content "Процеси"
end
end
end