1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +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:
Ricardo Siqueira de Oliveira Leite 2024-02-06 14:58:17 -03:00 committed by GitHub
parent 64c8774867
commit c8a659694d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 177 additions and 102 deletions

View file

@ -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

View file

@ -1,22 +0,0 @@
---
en:
password_resets:
create:
requested: If an account with that email exists, we have sent a link to reset
your password.
update:
invalid_token: Invalid token.
success: Your password has been reset.
passwords:
update:
success: Your password has been updated successfully.
registrations:
create:
failure: Invalid input, please try again.
invalid_invite_code: Invalid invite code, please try again.
success: You have signed up successfully.
sessions:
create:
invalid_credentials: Invalid email or password.
destroy:
logout_successful: You have signed out successfully.

View file

@ -0,0 +1,21 @@
---
en:
activerecord:
attributes:
account:
balance: Balance
currency: Currency
family: Family
family_id: Family
name: Name
subtype: Subtype
models:
account: Account
account/credit: Credit Card
account/depository: Bank Accounts
account/investiment: Investments
account/loan: Loan
account/other_asset: Other Asset
account/other_liability: Other Liability
account/property: Real Estate
account/vehicle: Vehicle

View file

@ -0,0 +1,12 @@
---
en:
activerecord:
attributes:
user:
email: Email
family: Family
family_id: Family
first_name: First Name
last_name: Last Name
password: Password
password_confirmation: Password Confirmation

View file

@ -0,0 +1,11 @@
---
en:
accounts:
create:
success: New account created successfully
index:
title: Cash
new:
account_name_placeholder: Account name
enter_type_account: Enter %{type} account
title: Add an account

View file

@ -0,0 +1,15 @@
---
en:
layouts:
application:
accounts: Accounts
cache: Cache
dashboard: Dashboard
new_accoount: New Account
auth:
or: or
privacy_policy: Privacy Policy
sign_in: sign in to your account
sign_up: create an account
terms_of_service: Terms of Service
your_account: Your account

View file

@ -0,0 +1,5 @@
---
en:
pages:
dashboard:
title: Dashboard

View file

@ -0,0 +1,5 @@
---
en:
password_mailer:
password_reset:
cta: Reset your password

View file

@ -0,0 +1,15 @@
---
en:
password_resets:
create:
requested: If an account with that email exists, we have sent a link to reset
your password.
edit:
submit: Update Password
title: Reset password
new:
submit: Reset password
title: Reset password
update:
invalid_token: Invalid token.
success: Your password has been reset.

View file

@ -0,0 +1,10 @@
---
en:
passwords:
edit:
password: New Password
password_challenge: Current Password
submit: Reset Password
title: Update Password
update:
success: Your password has been reset.

View file

@ -0,0 +1,16 @@
---
en:
helpers:
label:
user:
invite_code: Invite Code
submit:
user:
create: Continue
registrations:
create:
failure: Invalid input, please try again.
invalid_invite_code: Invalid invite code, please try again.
success: You have signed up successfully.
new:
title: Create an account

View file

@ -0,0 +1,14 @@
---
en:
sessions:
create:
invalid_credentials: Invalid email or password.
destroy:
logout_successful: You have signed out successfully.
new:
email: Email address
email_placeholder: you@example.com
forgot_password: Forgot your password?
reset_password: Reset it
submit: Log in
title: Sign in to your account