mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 04:25:21 +02:00
Start I18n Internationalization setup (#276)
* start internationalization_setup * add passwords views translations * add account views translations * fix translations * temporary disable i18n used key
This commit is contained in:
parent
64c8774867
commit
c8a659694d
33 changed files with 177 additions and 102 deletions
|
@ -1,9 +1,9 @@
|
|||
base_locale: en
|
||||
data:
|
||||
read:
|
||||
- config/locales/%{locale}.yml
|
||||
- config/locales/**/*%{locale}.yml
|
||||
write:
|
||||
- config/locales/%{locale}.yml
|
||||
- config/locales/**/*%{locale}.yml
|
||||
router: conservative_router
|
||||
search:
|
||||
paths:
|
||||
|
@ -14,7 +14,7 @@ search:
|
|||
- app/mailers
|
||||
- app/presenters
|
||||
- app/views
|
||||
strict: true
|
||||
strict: false
|
||||
## Files or `File.fnmatch` patterns to exclude from search. Some files are always excluded regardless of this setting:
|
||||
## *.jpg *.jpeg *.png *.gif *.svg *.ico *.eot *.otf *.ttf *.woff *.woff2 *.pdf *.css *.sass *.scss *.less
|
||||
## *.yml *.json *.zip *.tar.gz *.swf *.flv *.mp3 *.wav *.flac *.webm *.mp4 *.ogg *.opus *.webp *.map *.xlsx
|
||||
|
@ -23,3 +23,8 @@ search:
|
|||
- app/assets/fonts
|
||||
- app/assets/videos
|
||||
- app/assets/builds
|
||||
ignore_unused:
|
||||
- 'activerecord.attributes.*' # i18n-tasks does not detect these on forms, forms validations (https://github.com/glebm/i18n-tasks/blob/0b4b483c82664f26c5696fb0f6aa1297356e4683/templates/config/i18n-tasks.yml#L146)
|
||||
- 'activerecord.models.account*' # i18n-tasks does not detect use in dynamic model names (e.g. object.model_name.human)
|
||||
- 'helpers.submit.*' # i18n-tasks does not detect used at forms
|
||||
- 'helpers.label.*' # i18n-tasks does not detect used at forms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue