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: allow checking for i18n initialized state #2186

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

sissbruecker
Copy link
Contributor

Allows checking whether the I18n instance has been initialized or not, for example to show a placeholder component or loading indicator while initial translations are loading.

Fixes #2104

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.79%. Comparing base (6ae04aa) to head (f155a30).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2186   +/-   ##
=======================================
  Coverage   93.79%   93.79%           
=======================================
  Files          65       65           
  Lines        1629     1629           
  Branches      366      366           
=======================================
  Hits         1528     1528           
  Misses         66       66           
  Partials       35       35           
Flag Coverage Δ
unittests 93.79% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ugur-vaadin
ugur-vaadin previously approved these changes Mar 7, 2024
@platosha
Copy link
Contributor

@sissbruecker Hi, there's a conflict in the code. Could you, please, rebase?

# Conflicts:
#	packages/ts/react-i18n/src/index.ts
@sissbruecker
Copy link
Contributor Author

@platosha Sure, done

Copy link

sonarcloud bot commented Mar 15, 2024

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@sissbruecker sissbruecker merged commit f4d100c into main Mar 15, 2024
15 checks passed
@sissbruecker sissbruecker deleted the feat/react-i18n-initialized-state branch March 15, 2024 15:29
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Hilla 24.4.0.alpha15 and is also targeting the upcoming stable 24.4.0 version.

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

Successfully merging this pull request may close these issues.

[i18n] Prevent app rendering while loading initial translations
5 participants