mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-06-22 04:11:55 +10:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user