From b7eb65f819420c9073f1d3abe015e7947874e5aa Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov Date: Sun, 25 Jun 2023 23:07:46 +0300 Subject: [PATCH] I18n: Fixed docstring for statsCardLocales function and enable ts-check (#2883) --- src/translations.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/translations.js b/src/translations.js index d46277a..8cfdee5 100644 --- a/src/translations.js +++ b/src/translations.js @@ -1,11 +1,14 @@ +// @ts-check + import { encodeHTML } from "./common/utils.js"; /** * Retrieves stat card labels in the available locales. * - * @param {string} name The name of the locale. - * @param {string} apostrophe Whether to use apostrophe or not. - * @returns {Object} The locales object. + * @param {object} props Function arguments. + * @param {string} props.name The name of the locale. + * @param {string} props.apostrophe Whether to use apostrophe or not. + * @returns {object} The locales object. * * @see https://www.andiamo.co.uk/resources/iso-language-codes/ for language codes. */