mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Use "full" localization ids throughout the code-base
It was recently brought to my attention that using partial or generated localization ids is bad for maintainability, hence this patch goes through the code-base and replaces any such occurrences.
This commit is contained in:
parent
7494dbccf4
commit
b01df28810
4 changed files with 24 additions and 10 deletions
|
@ -177,7 +177,9 @@ class NewAltTextManager {
|
|||
this.#isEditing = isEditing;
|
||||
this.#title.setAttribute(
|
||||
"data-l10n-id",
|
||||
`pdfjs-editor-new-alt-text-dialog-${isEditing ? "edit" : "add"}-label`
|
||||
isEditing
|
||||
? "pdfjs-editor-new-alt-text-dialog-edit-label"
|
||||
: "pdfjs-editor-new-alt-text-dialog-add-label"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue