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

Translation choices/nomenclature #2510

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion config/initializers/translation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
TranslationIO.configure do |config|
config.api_key = ENV["TRANSLATION_IO_API_KEY"]
config.source_locale = "en"
config.target_locales = %w[nl nb es]
config.target_locales = %w[nl nb es it he]

# Uncomment this if you don't want to use gettext
config.disable_gettext = true
Expand Down
2 changes: 1 addition & 1 deletion config/locales/.translation_io
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
timestamp: 1702403356
timestamp: 1716995193
66 changes: 66 additions & 0 deletions config/locales/localization.he.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# THIS FILE CONTAINS LOCALIZATION KEYS : date and number formats, number precisions,
# number separators and all non-textual values depending on the language.
# These values must not reach the translator, so they are separated in this file.
#
# More info here: https://translation.io/blog/gettext-is-better-than-rails-i18n#localization
#
# You can edit and/or add new localization keys here, they won't be touched by Translation.io.
#
# If you want to add a new localization key prefix, use the option described here:
# https://github.com/translation/rails#custom-localization-key-prefixes
#
---
he:
date:
formats:
default: "%d-%m-%Y"
long: "%e ב%B, %Y"
short: "%e %b"
order:
- :day
- :month
- :year
number:
currency:
format:
delimiter: ","
format: "%n %u"
precision: 2
separator: "."
significant: false
strip_insignificant_zeros: false
unit: "₪"
format:
delimiter: ","
precision: 3
separator: "."
significant: false
strip_insignificant_zeros: false
human:
decimal_units:
format: "%n %u"
units:
unit: ''
format:
delimiter: ''
precision: 3
significant: true
strip_insignificant_zeros: true
storage_units:
format: "%n %u"
percentage:
format:
delimiter: ''
precision:
format:
delimiter: ''
support:
array:
last_word_connector: " ו"
two_words_connector: " ו"
words_connector: ", "
time:
formats:
default: "%a %d %b %H:%M:%S %Z %Y"
long: "%d ב%B, %Y %H:%M"
short: "%d %b %H:%M"
67 changes: 67 additions & 0 deletions config/locales/localization.it.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# THIS FILE CONTAINS LOCALIZATION KEYS : date and number formats, number precisions,
# number separators and all non-textual values depending on the language.
# These values must not reach the translator, so they are separated in this file.
#
# More info here: https://translation.io/blog/gettext-is-better-than-rails-i18n#localization
#
# You can edit and/or add new localization keys here, they won't be touched by Translation.io.
#
# If you want to add a new localization key prefix, use the option described here:
# https://github.com/translation/rails#custom-localization-key-prefixes
#
---
it:
date:
formats:
default: "%d/%m/%Y"
long: "%d %B %Y"
short: "%d %b"
order:
- :day
- :month
- :year
number:
currency:
format:
delimiter: "."
format: "%n %u"
precision: 2
separator: ","
significant: false
strip_insignificant_zeros: false
unit: "€"
format:
delimiter: "."
precision: 2
separator: ","
significant: false
strip_insignificant_zeros: false
human:
decimal_units:
format: "%n %u"
units:
unit: ''
format:
delimiter: ''
precision: 3
significant: true
strip_insignificant_zeros: true
storage_units:
format: "%n %u"
percentage:
format:
delimiter: ''
format: "%n%"
precision:
format:
delimiter: ''
support:
array:
last_word_connector: " e "
two_words_connector: " e "
words_connector: ", "
time:
formats:
default: "%a %d %b %Y, %H:%M:%S %z"
long: "%d %B %Y %H:%M"
short: "%d %b %H:%M"
Loading