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

[Editor] Utilize Fluent "better" when localizing the resizer DOM-elements #18649

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

Snuffleupagus
Copy link
Collaborator

Currently we manually localize and update the DOM-elements of the editor-resizers, and it seems nicer to utilize Fluent for that task.
This can be achieved by updating the l10n-strings to directly target the aria-label and then just setting the data-l10n-id on the DOM-elements.

@Snuffleupagus Snuffleupagus added editor l10n Localization labels Aug 25, 2024
@Snuffleupagus Snuffleupagus requested a review from a team as a code owner August 25, 2024 15:03
Copy link
Contributor

@flodolo flodolo left a comment

Choose a reason for hiding this comment

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

I'll need to create a Fluent migration for this when it lands in mozilla-central.

Not sure how to deal with this living in a separate repository, especially if it becomes more frequent (and if it's worth adding extra process) 🤔

src/display/editor/editor.js Outdated Show resolved Hide resolved
…ents

Currently we manually localize and update the DOM-elements of the editor-resizers, and it seems nicer to utilize Fluent for that task.
This can be achieved by updating the l10n-strings to directly target the `aria-label` and then just setting the `data-l10n-id` on the DOM-elements.
@mozilla mozilla deleted a comment from moz-tools-bot Aug 26, 2024
@mozilla mozilla deleted a comment from moz-tools-bot Aug 26, 2024
@mozilla mozilla deleted a comment from moz-tools-bot Aug 26, 2024
@mozilla mozilla deleted a comment from moz-tools-bot Aug 26, 2024
@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/a2c2ba5793a48ec/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/f6dac9e873d5573/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/a2c2ba5793a48ec/output.txt

Total script time: 8.63 mins

  • Integration Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/f6dac9e873d5573/output.txt

Total script time: 18.51 mins

  • Integration Tests: Passed

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

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

Successfully merging this pull request may close these issues.

4 participants