5
11
Fork
You've already forked tomato
1

Add spanish translations #167

Merged
edwardloveall merged 6 commits from el-spanish into main 2026年06月17日 15:11:16 +02:00

Note

No need to review the actual translation strings, of course. Just the code bits.

Not every Rootable user speaks English. Food rescues work closely with immigrant communities. We want our software to be accessible to different populations.

Some community members also pick up the shifts for their communities. In the past, a BFR staff member has logged information for the community members. BFR is onboarding community members to enter their own logs. A subset of this group (5) only speak Spanish. Rootable not being in Spanish is a barrier and creates more work for the team to fill logs and track them down.

This adds:

  • translations for most*† strings into Spanish
  • automatic language detection when logged out
    • also used to set your language when signing up
  • manual language preference
*There are a few areas that we don't currently translate. Things like all the language around how often a shift recurs, or strings currently in the database.

†Since we sent all these strings off to be translated, we've made a few changes that required new strings. Those new strings are not yet translated and presented currently in English.

> [!NOTE] > No need to review the actual translation strings, of course. Just the code bits. Not every Rootable user speaks English. Food rescues work closely with immigrant communities. We want our software to be accessible to different populations. Some community members also pick up the shifts for their communities. In the past, a BFR staff member has logged information for the community members. BFR is onboarding community members to enter their own logs. A subset of this group (5) only speak Spanish. Rootable not being in Spanish is a barrier and creates more work for the team to fill logs and track them down. This adds: - translations for most*† strings into Spanish - automatic language detection when logged out - also used to set your language when signing up - manual language preference <small> *There are a few areas that we don't currently translate. Things like all the language around how often a shift recurs, or strings currently in the database. †Since we sent all these strings off to be translated, we've made a few changes that required new strings. Those new strings are not yet translated and presented currently in English. </small>
For 99% of the interface, we rely on the user's language setting. But the login
pages don't yet have a user, so we fall back to the browser language setting
passed in the Accept-Language header.
When we invite a new user, it creates a user record and sends an email to the
page to set your account details (password, time zone, etc). Notably, this sets
the user's language to the default of "English".
This adds language to that page, and sets the value to whatever the browser has
in its `Accept-Language` header. Most pages use the user's language setting, not
the browser's setting, so this is one of the only places we can use the browser
preference to set the user's language.
The rails-i18n gem provides translations for many locales. It includes nice
defaults like error strings, weekday/month names, and times.
Oddly, some strings are lowercase in Spanish but Capitalized in English, so I
added some `titleize` and `capitalize` calls to ensure consistency.
Fill in missing spanish translations with english
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
4d9fa87ad2
edwardloveall force-pushed el-spanish from 4d9fa87ad2
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to 4a2af1dcb0
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年06月04日 15:58:15 +02:00
Compare
edwardloveall changed target branch from el-cleanup to main 2026年06月08日 06:54:29 +02:00
edwardloveall force-pushed el-spanish from 4a2af1dcb0
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to d831a79a03
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年06月08日 07:43:56 +02:00
Compare
edwardloveall force-pushed el-spanish from d831a79a03
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to f620125b87
Some checks failed
ci/woodpecker/pr/ci Pipeline was canceled
2026年06月08日 15:57:31 +02:00
Compare
edwardloveall force-pushed el-spanish from f620125b87
Some checks failed
ci/woodpecker/pr/ci Pipeline was canceled
to 961df7db7e
Some checks failed
ci/woodpecker/pr/ci Pipeline was canceled
2026年06月08日 16:00:47 +02:00
Compare
edwardloveall force-pushed el-spanish from 961df7db7e
Some checks failed
ci/woodpecker/pr/ci Pipeline was canceled
to 5b81593d05
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年06月08日 16:17:37 +02:00
Compare
edwardloveall force-pushed el-spanish from 5b81593d05
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
to 21050420b6
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年06月08日 21:34:18 +02:00
Compare
edwardloveall force-pushed el-spanish from 21050420b6
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
to 7d402793de
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年06月08日 22:34:28 +02:00
Compare
edwardloveall changed title from (削除) WIP: Add spanish translations (削除ここまで) to Add spanish translations 2026年06月09日 18:33:15 +02:00
edwardloveall force-pushed el-spanish from 7d402793de
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
to 169fd10656
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年06月10日 15:21:39 +02:00
Compare
edwardloveall force-pushed el-spanish from 169fd10656
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to 0153005494
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年06月11日 15:50:51 +02:00
Compare
edwardloveall force-pushed el-spanish from 0153005494
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to 2ef0900b3f
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2026年06月11日 17:59:56 +02:00
Compare
edwardloveall force-pushed el-spanish from 2ef0900b3f
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
to edf17c1025
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年06月11日 18:09:04 +02:00
Compare
thetizzo left a comment
Copy link

Looks great. Exciting to have this in the app!

Looks great. Exciting to have this in the app!
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rootable/tomato!167
Reference in a new issue
rootable/tomato
No description provided.
Delete branch "el-spanish"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?