yari
yari copied to clipboard
fix(content/document): let `roots` as rest parameters of read
Summary
Fixes: #7196.
Problem
~It seems that the findByURL
doesn't pass roots as a string array. Just fix this.~ refeactor the read
function: pass roots as rest parameters.
And for the remove
function, we can search with the specific root (not both en-us
and l10n
). And we can throw error when the locale is not specified (or not exists).
Solution
Minor fixes.
Screenshots
Before
for en-US (yarn tool delete Web/API/ShadowRoot/onslotchange --redirect=Web/API/HTMLSlotElement/slotchange_event
)
for fr (yarn tool delete conflicting/Glossary/Firefox_OS fr --redirect Glossary/Boot2Gecko
)
After
for en-US:
for fr:
How did you test this change?
run yarn tool delete
is there something blocking this one? using the command is almost a mandatory step to deal with sync translated content PRs