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

Improve SL translations #363

Closed
wants to merge 12 commits into from
10 changes: 10 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[main]
host = https://www.transifex.com

[o:devise-i18n:p:devise-i18n-1:r:enyml]
file_filter = rails/locales/<lang>.yml
source_file = rails/locales/en.yml
type = YML
minimum_perc = 0
resource_name = en.yml
lang_map = de_CH: de-CH, en_GB: en-GB, es_CL: es-CL, es_CO: es-CO, es_MX: es-MX, fr_CA: fr-CA, lo_LA: lo-LA, nn_NO: nn-NO, pt_BR: pt-BR, sr_RS: sr-RS, zh_CN: zh-CN, zh_HK: zh-HK, zh_TW: zh-TW
27 changes: 5 additions & 22 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PATH
specs:
devise-i18n (1.12.1)
devise (>= 4.9.0)
rails-i18n

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -55,15 +56,10 @@ GEM
responders
warden (~> 1.2.3)
diff-lcs (1.5.1)
domain_name (0.6.20240107)
drb (2.2.1)
erubi (1.13.0)
gli (2.21.5)
hashie (5.0.0)
http-accept (1.7.0)
http-cookie (1.0.7)
domain_name (~> 0.5)
i18n (1.14.5)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
i18n-spec (0.6.0)
iso
Expand All @@ -73,22 +69,12 @@ GEM
reline (>= 0.4.2)
iso (0.4.0)
i18n
json (2.7.2)
localeapp (3.3.0)
gli
i18n (>= 0.7, < 2)
json (>= 1.7.7)
rest-client (>= 1.8.0)
logger (1.6.1)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0903)
mini_portile2 (2.8.7)
minitest (5.25.1)
netrc (0.11.0)
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
Expand Down Expand Up @@ -131,6 +117,9 @@ GEM
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rails-i18n (7.0.8)
i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8)
railties (7.2.1)
actionpack (= 7.2.1)
activesupport (= 7.2.1)
Expand All @@ -147,11 +136,6 @@ GEM
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
Expand Down Expand Up @@ -196,7 +180,6 @@ DEPENDENCIES
appraisal
devise-i18n!
i18n-spec (~> 0.6.0)
localeapp
omniauth-twitter
railties
rspec (>= 2.8.0)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ which will generate `config/locales/devise.views.it.yml`. If you're doing this t

## Contributing translations to devise-i18n

Edit the translations directly on the [devise-i18n](https://app.localeapp.com/projects/377) project on Locale. **That's it!**
The maintainer will periodically pull translations from the Locale project and push to GitHub.
Edit the translations directly on the [devise-i18n](https://app.transifex.com/devise-i18n/devise-i18n-1/dashboard/) project on Transifex. **That's it!**
The maintainer will periodically pull translations from the Transifex project and push to GitHub.

Alternately, you can create a pull request on GitHub.

Expand Down
2 changes: 2 additions & 0 deletions bin/tx_pull
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
../tx pull -a --use-git-timestamps
sed -i '1!b;s/_/-/' rails/locales/*-*.yml
6 changes: 3 additions & 3 deletions devise-i18n.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Gem::Specification.new do |s|
s.authors = ["Christopher Dell".freeze, "mcasimir".freeze, "Jason Barnabe".freeze]
s.date = "2023-10-04"
s.description = "Translations for the devise gem".freeze
s.email = "chris@tigrish.com".freeze
s.email = "jason.barnabe@gmail.com".freeze
s.extra_rdoc_files = [
"LICENSE.txt",
"README.md"
Expand All @@ -16,16 +16,16 @@ Gem::Specification.new do |s|
`git ls-files -z app lib rails LICENSE.txt README.md VERSION`.split("\x0")
end

s.homepage = "https://github.com/tigrish/devise-i18n".freeze
s.homepage = "https://github.com/devise-i18n/devise-i18n".freeze
s.licenses = ["MIT".freeze]
s.rubygems_version = "3.1.6".freeze
s.summary = "Translations for the devise gem".freeze

s.add_runtime_dependency(%q<devise>.freeze, [">= 4.9.0"])
s.add_runtime_dependency(%q<rails-i18n>.freeze, [">= 0"])
s.add_development_dependency(%q<rspec>.freeze, [">= 2.8.0"])
s.add_development_dependency(%q<rspec-rails>.freeze, [">= 0"])
s.add_development_dependency(%q<i18n-spec>.freeze, ["~> 0.6.0"])
s.add_development_dependency(%q<localeapp>.freeze, [">= 0"])
s.add_development_dependency(%q<railties>.freeze, [">= 0"])
s.add_development_dependency(%q<activemodel>.freeze, [">= 0"])
s.add_development_dependency(%q<omniauth-twitter>.freeze, [">= 0"])
Expand Down
25 changes: 4 additions & 21 deletions gemfiles/ruby_2.7.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PATH
specs:
devise-i18n (1.12.1)
devise (>= 4.9.0)
rails-i18n

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -53,14 +54,9 @@ GEM
responders
warden (~> 1.2.3)
diff-lcs (1.5.1)
domain_name (0.6.20240107)
drb (2.2.1)
erubi (1.12.0)
gli (2.21.1)
hashie (5.0.0)
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
i18n-spec (0.6.0)
Expand All @@ -71,22 +67,12 @@ GEM
reline (>= 0.4.2)
iso (0.4.0)
i18n
json (2.7.2)
localeapp (3.3.0)
gli
i18n (>= 0.7, < 2)
json (>= 1.7.7)
rest-client (>= 1.8.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0507)
mini_portile2 (2.8.6)
minitest (5.23.1)
mutex_m (0.2.0)
netrc (0.11.0)
nokogiri (1.15.5)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
Expand Down Expand Up @@ -128,6 +114,9 @@ GEM
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rails-i18n (7.0.8)
i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8)
railties (7.1.3.3)
actionpack (= 7.1.3.3)
activesupport (= 7.1.3.3)
Expand All @@ -144,11 +133,6 @@ GEM
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
Expand Down Expand Up @@ -191,7 +175,6 @@ DEPENDENCIES
appraisal
devise-i18n!
i18n-spec (~> 0.6.0)
localeapp
nokogiri (= 1.15.5)
omniauth-twitter
railties
Expand Down
25 changes: 4 additions & 21 deletions gemfiles/ruby_3.0.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PATH
specs:
devise-i18n (1.12.1)
devise (>= 4.9.0)
rails-i18n

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -53,14 +54,9 @@ GEM
responders
warden (~> 1.2.3)
diff-lcs (1.5.1)
domain_name (0.6.20240107)
drb (2.2.1)
erubi (1.12.0)
gli (2.21.1)
hashie (5.0.0)
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
i18n-spec (0.6.0)
Expand All @@ -71,21 +67,11 @@ GEM
reline (>= 0.4.2)
iso (0.4.0)
i18n
json (2.7.2)
localeapp (3.3.0)
gli
i18n (>= 0.7, < 2)
json (>= 1.7.7)
rest-client (>= 1.8.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0507)
minitest (5.23.1)
mutex_m (0.2.0)
netrc (0.11.0)
nokogiri (1.16.5-x86_64-linux)
racc (~> 1.4)
oauth (1.1.0)
Expand Down Expand Up @@ -126,6 +112,9 @@ GEM
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rails-i18n (7.0.8)
i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8)
railties (7.1.3.3)
actionpack (= 7.1.3.3)
activesupport (= 7.1.3.3)
Expand All @@ -142,11 +131,6 @@ GEM
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
Expand Down Expand Up @@ -189,7 +173,6 @@ DEPENDENCIES
appraisal
devise-i18n!
i18n-spec (~> 0.6.0)
localeapp
omniauth-twitter
railties
rspec (>= 2.8.0)
Expand Down
25 changes: 4 additions & 21 deletions gemfiles/ruby_3.1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PATH
specs:
devise-i18n (1.12.1)
devise (>= 4.9.0)
rails-i18n

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -53,14 +54,9 @@ GEM
responders
warden (~> 1.2.3)
diff-lcs (1.5.1)
domain_name (0.6.20240107)
drb (2.2.1)
erubi (1.12.0)
gli (2.21.1)
hashie (5.0.0)
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
i18n-spec (0.6.0)
Expand All @@ -71,21 +67,11 @@ GEM
reline (>= 0.4.2)
iso (0.4.0)
i18n
json (2.7.2)
localeapp (3.3.0)
gli
i18n (>= 0.7, < 2)
json (>= 1.7.7)
rest-client (>= 1.8.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0507)
minitest (5.23.1)
mutex_m (0.2.0)
netrc (0.11.0)
nokogiri (1.16.5-x86_64-linux)
racc (~> 1.4)
oauth (1.1.0)
Expand Down Expand Up @@ -126,6 +112,9 @@ GEM
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rails-i18n (7.0.8)
i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8)
railties (7.1.3.3)
actionpack (= 7.1.3.3)
activesupport (= 7.1.3.3)
Expand All @@ -142,11 +131,6 @@ GEM
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
Expand Down Expand Up @@ -189,7 +173,6 @@ DEPENDENCIES
appraisal
devise-i18n!
i18n-spec (~> 0.6.0)
localeapp
omniauth-twitter
railties
rspec (>= 2.8.0)
Expand Down
Loading