Skip to content

Commit

Permalink
Use localeapp for locale management (SpinaCMS#494)
Browse files Browse the repository at this point in the history
* Use localeapp for locale management

* Complete English and Dutch translations
  • Loading branch information
Bramjetten authored Dec 16, 2019
1 parent 99b1abe commit f54ddcf
Show file tree
Hide file tree
Showing 19 changed files with 3,414 additions and 3,048 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
.bundle/
log/*.log
pkg/
Expand All @@ -14,3 +15,4 @@ coverage/*
*.gemfile.lock
test/dummy/storage/*
.idea/*
.localeapp
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.1
2.6.5
4 changes: 2 additions & 2 deletions app/views/spina/admin/pages/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
%div{style: "display: inline-block", data: {dropdown: true}}
= link_to '#', class: 'button button-hollow button-small', style: 'margin-left: 0; margin-right: 0', data: {trigger: 'dropdown', target: '#locales'} do
= icon('comment')
=t "languages.#{@locale}"
=t "spina.languages.#{@locale}"
%i.icon.icon-chevron-down{style: 'font-size: 9px; margin-right: 0'}

%ul#locales
- Spina.config.locales.each do |locale|
%li
= link_to t("languages.#{locale}"), "?locale=#{locale}", style: ('font-weight: 600' if @locale.to_s == locale.to_s).to_s
= link_to t("spina.languages.#{locale}"), "?locale=#{locale}", style: ('font-weight: 600' if @locale.to_s == locale.to_s).to_s

= link_to @page.materialized_path, target: :blank, class: 'button button-hollow button-small', style: 'margin-left: 0' do
%i.icon.icon-export{style: 'margin: 0'}
Expand Down
415 changes: 210 additions & 205 deletions config/locales/TH.yml

Large diffs are not rendered by default.

420 changes: 209 additions & 211 deletions config/locales/bg.yml

Large diffs are not rendered by default.

Loading

0 comments on commit f54ddcf

Please sign in to comment.