-
Notifications
You must be signed in to change notification settings - Fork 974
Changed share l10n string to use a generic template for each share menu items. #12445
Changed share l10n string to use a generic template for each share menu items. #12445
Conversation
app/common/commonMenu.js
Outdated
return { | ||
label: locale.translation(l10nId), | ||
label: locale.translation(l10nId).replace(/{{\s*siteName\s*}}/, siteName), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this one to locale.translation(l10nId, {siteName: siteName})
? We already have a mechanism for variables in the translations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried your suggestion and I tried other way using ${locale.translation(l10nId)} ${siteName}
but it also didn't work. when I lookup locale.translation, I found out that it only accepted one argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure that I follow, this change is not working for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is not working for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, let me try it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok I see what's going on, will fix it, so that this will work as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sergiorojasa ok this should be working now, can you please check out if everything is ok now? I pushed my fix commit to your PR
b0b444a
to
cde30c9
Compare
cde30c9
to
6e559e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ thank you for this 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ Manually test looks good. 👍
@sergiorojasa congrats on your first merged PR! 😄 👍 Thanks! |
Fix #8604
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests