Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: changes to support right-to-left #830

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Conversation

kabaros
Copy link
Contributor

@kabaros kabaros commented Feb 16, 2024

Changes to support RTL were implemented by @KaiVandivier in alpha - this just merges the commits from alpha (easier than merging alpha because of the lint rules around commit messages)

…2-16480] (#825)

* feat: change text direction based on locale

* feat: add direction config to d2.config

* refactor: split up handleLocale

* refactor: rename function; add dir default to adapter

* fix: remove direction from d2.config defaults in CLI

* refactor: parse locale to Intl.Locale object

* refactor: better i18nLocale logic

* fix: moment locale formatting & add fallbacks

* refactor: fn rename

* refactor: move locale utils to a new file

* test: set up test file for useLocale.test

* fix: skip logic for en and en-US

* test: add first useLocale tests

* test: userSettings cases

* test: add document direction tests

* fix: handle nonstandard configDirections

* feat: set document `lang` attribute
* test: update tests to target useCurrentUserLocale

* fix: remove unused export on useLocale
@kabaros kabaros changed the title feat: RTL changes from alpha branch feat: changes to support right-to-left Feb 19, 2024
@kabaros kabaros merged commit 6d5433c into master Feb 19, 2024
8 of 10 checks passed
@kabaros kabaros deleted the alpha-merge-rtl-changes branch February 19, 2024 13:53
dhis2-bot added a commit that referenced this pull request Feb 19, 2024
# [10.5.0](v10.4.1...v10.5.0) (2024-02-19)

### Features

* changes to support right-to-left ([#830](#830)) ([6d5433c](6d5433c)), closes [#825](#825) [#826](#826)
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 10.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants