Skip to content

Commit

Permalink
l10n(w3c/level): add some more strings; improve docs (#4617)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Dec 22, 2023
1 parent 4df7413 commit 84f7663
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/w3c/level.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* of a spec when there is a valid level configuration.
*
* Levels should be integers >= 0.
*
* @module w3c/level
*/

import { getIntlData, showError } from "../core/utils.js";
Expand All @@ -12,10 +14,27 @@ const localizationStrings = {
en: {
level: "Level",
},
ja: {
level: "レベル",
},
nl: {
level: "Niveau",
},
de: {
level: "Stufe",
},
zh: {
level: "级别",
},
};

const l10n = getIntlData(localizationStrings);

/**
* Updates the title and shortName of a spec based on the level configuration.
*
* @param {Conf} conf - The configuration object.
*/
export function run(conf) {
if (!conf.hasOwnProperty("level")) return;

Expand Down

0 comments on commit 84f7663

Please sign in to comment.