-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add localization and setup changing languages
- Loading branch information
Showing
12 changed files
with
183 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import "bootstrap" | ||
import "@hotwired/turbo-rails" | ||
window.process = { env: { NODE_ENV: 'production' } }; | ||
import '@popperjs/core' | ||
import "popper" | ||
import "bootstrap" | ||
import "controllers" | ||
import "./upload.js" | ||
import "./modal.js" | ||
// import "./rails_admin.js" | ||
// import 'rails_admin/dist/rails_admin.js'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
ua: | ||
devise: | ||
confirmations: | ||
confirmed: "Ваша електронна адреса успішно підтверджена." | ||
send_instructions: "Ви отримаєте лист із інструкціями, як підтвердити вашу електронну адресу, через кілька хвилин." | ||
send_paranoid_instructions: "Якщо ваша електронна адреса існує в нашій базі даних, ви отримаєте лист із інструкціями щодо підтвердження вашої електронної адреси через кілька хвилин." | ||
failure: | ||
already_authenticated: "Ви вже увійшли в систему." | ||
inactive: "Ваш акаунт ще не активовано." | ||
invalid: "Невірний %{authentication_keys} або пароль." | ||
locked: "Ваш акаунт заблоковано." | ||
last_attempt: "У вас залишилась одна спроба перед блокуванням акаунту." | ||
not_found_in_database: "Невірний %{authentication_keys} або пароль." | ||
timeout: "Сеанс закінчився. Будь ласка, увійдіть знову, щоб продовжити." | ||
unauthenticated: "Ви повинні увійти або зареєструватися перед продовженням." | ||
unconfirmed: "Ви повинні підтвердити свою електронну адресу перед продовженням." | ||
mailer: | ||
confirmation_instructions: | ||
subject: "Інструкції щодо підтвердження" | ||
reset_password_instructions: | ||
subject: "Інструкції щодо скидання пароля" | ||
unlock_instructions: | ||
subject: "Інструкції щодо розблокування" | ||
email_changed: | ||
subject: "Електронна адреса змінена" | ||
password_change: | ||
subject: "Пароль змінено" | ||
omniauth_callbacks: | ||
failure: "Не вдалося автентифікувати вас через %{kind}, тому що \"%{reason}\"." | ||
success: "Успішно автентифіковано через обліковий запис %{kind}." | ||
passwords: | ||
no_token: "Ви не можете отримати доступ до цієї сторінки без посилання на скидання пароля. Якщо ви прийшли з листа про скидання пароля, переконайтеся, що ви використали повний URL, наданий у листі." | ||
send_instructions: "Ви отримаєте лист із інструкціями щодо скидання пароля через кілька хвилин." | ||
send_paranoid_instructions: "Якщо ваша електронна адреса існує в нашій базі даних, ви отримаєте посилання на відновлення пароля на свою електронну адресу через кілька хвилин." | ||
updated: "Ваш пароль успішно змінено. Ви тепер увійшли в систему." | ||
updated_not_active: "Ваш пароль успішно змінено." | ||
registrations: | ||
destroyed: "До побачення! Ваш акаунт успішно скасовано. Сподіваємося побачити вас знову незабаром." | ||
signed_up: "Ласкаво просимо! Ви успішно зареєструвалися." | ||
signed_up_but_inactive: "Ви успішно зареєструвалися. Однак ми не змогли вас увійти, оскільки ваш акаунт ще не активовано." | ||
signed_up_but_locked: "Ви успішно зареєструвалися. Однак ми не змогли вас увійти, оскільки ваш акаунт заблоковано." | ||
signed_up_but_unconfirmed: "Повідомлення з посиланням на підтвердження було надіслано на вашу електронну адресу. Будь ласка, перейдіть за посиланням, щоб активувати свій акаунт." | ||
update_needs_confirmation: "Ви успішно оновили свій акаунт, але нам потрібно підтвердити вашу нову електронну адресу. Будь ласка, перевірте свою електронну пошту та перейдіть за посиланням для підтвердження нової електронної адреси." | ||
updated: "Ваш акаунт успішно оновлено." | ||
updated_but_not_signed_in: "Ваш акаунт успішно оновлено, але оскільки ваш пароль був змінений, вам потрібно увійти знову." | ||
sessions: | ||
signed_in: "Ви успішно увійшли в систему." | ||
signed_out: "Ви успішно вийшли з системи." | ||
already_signed_out: "Ви успішно вийшли з системи." | ||
unlocks: | ||
send_instructions: "Ви отримаєте лист із інструкціями, як розблокувати ваш акаунт, через кілька хвилин." | ||
send_paranoid_instructions: "Якщо ваш акаунт існує, ви отримаєте лист із інструкціями, як розблокувати його через кілька хвилин." | ||
unlocked: "Ваш акаунт успішно розблоковано. Будь ласка, увійдіть, щоб продовжити." | ||
errors: | ||
messages: | ||
already_confirmed: "вже було підтверджено, будь ласка, спробуйте увійти в систему" | ||
confirmation_period_expired: "потрібно підтвердити протягом %{period}, будь ласка, запросіть новий" | ||
expired: "закінчився, будь ласка, запросіть новий" | ||
not_found: "не знайдено" | ||
not_locked: "не було заблоковано" | ||
not_saved: | ||
one: "1 помилка завадила збереженню цього %{resource}:" | ||
other: "%{count} помилок завадили збереженню цього %{resource}:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
# Files in the config/locales directory are used for internationalization and | ||
# are automatically loaded by Rails. If you want to use locales other than | ||
# English, add the necessary files in this directory. | ||
# | ||
# To use the locales, use `I18n.t`: | ||
# | ||
# I18n.t "hello" | ||
# | ||
# In views, this is aliased to just `t`: | ||
# | ||
# <%= t("hello") %> | ||
# | ||
# To use a different locale, set it with `I18n.locale`: | ||
# | ||
# I18n.locale = :es | ||
# | ||
# This would use the information in config/locales/es.yml. | ||
# | ||
# To learn more about the API, please read the Rails Internationalization guide | ||
# at https://guides.rubyonrails.org/i18n.html. | ||
# | ||
# Be aware that YAML interprets the following case-insensitive strings as | ||
# booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings | ||
# must be quoted to be interpreted as strings. For example: | ||
# | ||
# en: | ||
# "yes": yup | ||
# enabled: "ON" | ||
|
||
en: | ||
hello: "Hello world" | ||
en: | ||
language: 'Language' | ||
home: | ||
welcome_title: 'Welcome to SMOG' | ||
welcome_description: 'Smog is a new platform for storing and sharing images with everyone. You can comment on or like some photos, but you need to register to do so.' | ||
navigator: | ||
category: 'Categories' | ||
home: 'Home' | ||
explore: 'Explore' | ||
profile: 'My Profile' | ||
add_pin: 'Add Pin' | ||
log_out: 'Log Out' | ||
sign_up: 'Create New Account' | ||
footer: | ||
developed_by: 'Developed by ' | ||
app_pin_page: | ||
category_input_label: 'Category Name' | ||
category_recommend_text: 'Select a file or drag it here' | ||
image_upload_info: 'We recommend using high-quality .jpg files (size less than 20MB)' | ||
submit_image: 'Upload' | ||
categories: | ||
subscribe_button: 'Subscribe' | ||
unsubscribe_button: 'Unsubscribe' | ||
image_info: | ||
comments_title: 'Comments' | ||
caption: 'Caption' | ||
add_comment: 'Add Comment' | ||
close_image: 'Close' | ||
likes_title: 'Likes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ua: | ||
language: 'Мова' | ||
home: | ||
welcome_title: 'Вітаємо у SMOG' | ||
welcome_description: 'Smog – це нова платформа для зберігання та обміну зображеннями з усіма. Ви можете коментувати або лайкати деякі фотографії, але для цього вам потрібно зареєструватися.' | ||
navigator: | ||
category: 'Категорії' | ||
home: 'Головна' | ||
explore: 'Досліджувати' | ||
profile: 'Мій профіль' | ||
add_pin: 'Додати нову картинку' | ||
log_out: 'Вийти' | ||
sign_up: 'Створити новий акаунт' | ||
footer: | ||
developed_by: 'Створено розробником ' | ||
app_pin_page: | ||
category_input_label: 'Назва категорії' | ||
category_recommend_text: 'Виберіть файл або перетягніть його' | ||
image_upload_info: 'Ми рекомендуємо використовувати файли високої якості .jpg (розмір менше 20 МБ)' | ||
submit_image: 'Завантажити' | ||
categories: | ||
subscribe_button: 'Підписатись' | ||
unsubscribe_button: 'Відписатись' | ||
image_info: | ||
comments_title: 'Коментарі' | ||
caption: 'Опис' | ||
add_comment: 'Додати коментар' | ||
close_image: 'Закрити' | ||
likes_title: 'Сподобалося' |