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

fix: remove unused export for useLocale (and update tests) #826

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

KaiVandivier
Copy link
Contributor

Follow-up to #825

@kabaros kabaros merged commit d4262e1 into alpha Jan 25, 2024
6 checks passed
@kabaros kabaros deleted the update-use-locale-tests branch January 25, 2024 18:39
dhis2-bot added a commit that referenced this pull request Jan 25, 2024
# [10.5.0-alpha.2](v10.5.0-alpha.1...v10.5.0-alpha.2) (2024-01-25)

### Bug Fixes

* remove unused export for useLocale (and update tests) ([#826](#826)) ([d4262e1](d4262e1))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 10.5.0-alpha.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

kabaros pushed a commit that referenced this pull request Feb 16, 2024
* test: update tests to target useCurrentUserLocale

* fix: remove unused export on useLocale
kabaros added a commit that referenced this pull request Feb 19, 2024
* feat: `dir` config for language directions and other i18n fixes [DHIS2-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

* fix: remove unused export for useLocale (and update tests) (#826)

* test: update tests to target useCurrentUserLocale

* fix: remove unused export on useLocale

---------

Co-authored-by: Kai Vandivier <[email protected]>
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants