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: wait for language to be loaded before update #1969

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

cpaulve-1A
Copy link
Contributor

@cpaulve-1A cpaulve-1A commented Jul 15, 2024

Proposed change

Devtool state reload fails because the update localization message is sent before the reload of the language.

@cpaulve-1A cpaulve-1A requested a review from a team as a code owner July 15, 2024 17:24
Copy link

nx-cloud bot commented Jul 15, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 7538110. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@github-actions github-actions bot added bug Something isn't working project:@o3r/localization labels Jul 15, 2024
@@ -65,9 +65,10 @@ export class OtterLocalizationDevtools {
* @param keyValues key/values to update
* @param language if not provided, the current language value
*/
public updateLocalizationKeys(keyValues: { [key: string]: string }, language?: string): void | Promise<void> {
public async updateLocalizationKeys(keyValues: { [key: string]: string }, language?: string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really a big deal but a small breaking change here :D

@cpaulve-1A cpaulve-1A merged commit 32cb9f4 into release/10.4 Jul 16, 2024
26 of 27 checks passed
@cpaulve-1A cpaulve-1A deleted the fix/localization-reload branch July 16, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working project:@o3r/localization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants