Add Greek (el) as beta locale#95655
Draft
roryabraham wants to merge 8 commits into
Draft
Conversation
Add el to BETA_LOCALES with Ελληνικά display name. Co-authored-by: Cursor <cursoragent@cursor.com>
Add el loader to IntlStore (date-fns/locale/el), map el to Apple Sign In's el_GR locale, and load el Intl.ListFormat polyfill data. Note: src/languages/el.ts does not exist yet; typecheck passes once added in a follow-up commit. Co-authored-by: Cursor <cursoragent@cursor.com>
Add glossary and tone rules for Greek to guide translation generation (formal register, gender/case agreement). Co-authored-by: Cursor <cursoragent@cursor.com>
Generate src/languages/el.ts from en.ts via generateTranslations.ts, using the base and Greek-specific prompts. 6,048 strings translated with zero failures. Co-authored-by: Cursor <cursoragent@cursor.com>
Match the existing pattern for other AI-generated locale files; still type-checked, just not linted as hand-authored source. Co-authored-by: Cursor <cursoragent@cursor.com>
Match the existing ignorePaths pattern for other beta locales; without this, CI spell-check fails on ~10k lines of Greek text. Co-authored-by: Cursor <cursoragent@cursor.com>
Ελληνικά in LOCALES.ts's LOCALE_TO_LANGUAGE_STRING is hand-written (not covered by ignorePaths), so it needs a words entry like the other locales' native display names (Deutsch, Français, etc.). Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Author
|
CI failed on two unrelated, pre-existing test failures (both look like date/time-bomb bugs, not caused by this PR's Greek locale changes):
Both tests use a hardcoded transaction
Tracked in Fix flaky test ReportSecondaryActionUtilsTest/ReportPreviewActionUtilsTest. |
Contributor
|
🚧 roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
Contributor
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
Adds Greek (
el) as a new beta locale. RegisterselinLOCALES.ts, wires runtime loading inIntlStore(translations +date-fnslocale), maps Apple Sign In'sel_GRlocale, loads GreekIntl.ListFormatpolyfill data, adds a Greek translation prompt/glossary, and generatessrc/languages/el.tsfromen.ts(6,048 strings, zero translation failures). Excludes the generated file from ESLint and cspell, matching every other beta locale's pattern.This lands the infra prerequisite for Add Greek as a language to E/App, part of the translator-hiring epic #504749. Greek ships as beta: AI-generated, unaudited, no localized emoji keywords — same limitations as
de/fr/ja/etc. Promoting to fully-supported happens after expert audit in a follow-up.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/657039
PROPOSAL:
Tests
undefined/[object Object], and no missing-key errors.Offline tests
N/A — locale files are bundled at build time; no network-dependent behavior changes.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A — web-only locale infra change, no native platform code touched.
Android: mWeb Chrome
N/A — see MacOS: Chrome / Safari for representative web coverage.
iOS: Native
N/A — web-only locale infra change, no native platform code touched.
iOS: mWeb Safari
N/A — see MacOS: Chrome / Safari for representative web coverage.
MacOS: Chrome / Safari