refactor(web): dedupe isRTL via utils locale module

Re-export isRTL from @reactive-resume/utils/locale in the web locale
helper and consolidate RTL detection tests in the utils package.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Amruth Pillai
2026-05-25 16:32:58 +02:00
parent 24c882fa9f
commit c66560ee12
3 changed files with 11 additions and 63 deletions
+7
View File
@@ -46,9 +46,16 @@ describe("isRTL", () => {
["ar-SA", true],
["he-IL", true],
["fa-IR", true],
["ur-PK", true],
["en-US", false],
["en-GB", false],
["fr-FR", false],
["de-DE", false],
["zh-CN", false],
["xyz-XX", false],
["AR-SA", true],
["ar", true],
["en", false],
])("returns %s → %s", (locale, expected) => {
expect(isRTL(locale)).toBe(expected);
});