Skip to content

Changes to Dotcom translation workflow#3307

Open
lilybarrett wants to merge 7 commits into
mainfrom
lb/translation_task_changes
Open

Changes to Dotcom translation workflow#3307
lilybarrett wants to merge 7 commits into
mainfrom
lb/translation_task_changes

Conversation

@lilybarrett

@lilybarrett lilybarrett commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Scope

We realized that Dotcom's custom translation task is making it so a single string, All clear, captain! was the only thing getting translated from English. This changes the code so we can properly update our .po files for translations going forward.

Asana Ticket: Implement: Fix workflows/Add CI checks/Update ReadMe

Implementation

  • Remove translator.yml and translate.ex
  • Remove terminologies
  • Update gettext pluralization logic
  • Add more information to the ReadMe about handling internationalization
  • Add a new command, mix localize, that should be run manually to update .po files before making PRs
  • Add a CI task to ensure .po files have been properly updated
  • Commit an updated .po file for English phrases

Screenshots

How to test

  • Pull down this branch
  • Run mix localize locally to update your .po files
  • Navigate to /_flags and turn on the Smartling flag
  • Navigate to the homepage and play around with picking different languages

More WIP

More changes

Update ReadMe
@lilybarrett lilybarrett requested a review from a team as a code owner July 1, 2026 14:32
@lilybarrett lilybarrett requested a review from jlucytan July 1, 2026 14:32
@lilybarrett lilybarrett marked this pull request as draft July 1, 2026 14:35
@lilybarrett lilybarrett force-pushed the lb/translation_task_changes branch from 076bc9b to a47600b Compare July 1, 2026 15:27
@lilybarrett lilybarrett marked this pull request as ready for review July 1, 2026 15:28
@lilybarrett lilybarrett requested a review from arkadyan July 1, 2026 15:28
Comment thread mix.exs Outdated
Comment thread config/config.exs
Comment thread README.md Outdated
Comment thread README.md
Comment thread config/config.exs
joshlarson

This comment was marked as resolved.

@lilybarrett lilybarrett added Not Ready for Translation Remove this when the PR is approved to trigger a Smartling translation job and removed Not Ready for Translation Remove this when the PR is approved to trigger a Smartling translation job labels Jul 6, 2026
@lilybarrett lilybarrett force-pushed the lb/translation_task_changes branch from 2d5c9fa to 6d8bdc0 Compare July 6, 2026 17:28
Comment thread lib/dotcom/gettext/plural.ex
@lilybarrett lilybarrett force-pushed the lb/translation_task_changes branch from de32fae to d558ce8 Compare July 6, 2026 19:41
Lily Barrett and others added 6 commits July 6, 2026 15:52
Code cleanup

WIP

Revert changes to cldr

See if this works for CI

Check on every file change

Ensure CI check happens in the proper place
Update ReadMe

More ReadMe updates

tweak: Commit `fr.json` file

Commit updated .pot file to see if this passes the CI check

New mix command for local gettext checks, updates to  files
…sk_changes (#3317)

* Translations updated for PR#3307 on es-LA locale

* Translations updated for PR#3307 on ht-HT locale

* Translations updated for PR#3307 on zh-TW locale

* Translations updated for PR#3307 on pt-BR locale

* Translations updated for PR#3307 on vi-VN locale

* Translations updated for PR#3307 on zh-CN locale

---------

Co-authored-by: smartling-github-connector[bot] <165276057+smartling-github-connector[bot]@users.noreply.github.com>

Update ReadMe

Does this work better in CI?

Trying something else

Try to get more verbose CI output
@lilybarrett lilybarrett force-pushed the lb/translation_task_changes branch 2 times, most recently from 15b60dc to aa15fdf Compare July 6, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants