Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Sep 4, 2023
1 parent 8f35375 commit 2c7e987
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.

/**
* Returns a language string with underscores replaced with
* hyphens, and lowercased.
* hyphens, and lower-cased.
*
* @param {string} language The language string to be normalized
* @returns {string} The normalized language string
Expand All @@ -32,10 +32,10 @@ export function normalizeLanguageKey(language: string): string {
* Turns a language string, normalises it,
* (see normalizeLanguageKey) into an array of language strings
* with fallback to generic languages
* (eg. 'pt-BR' => ['pt-br', 'pt'])
* (e.g. 'pt-BR' => ['pt-br', 'pt'])
*
* @param {string} language The input language string
* @return {string[]} List of normalised languages
* @param language The input language string
* @return a list of normalised languages
*/
export function getNormalizedLanguageKeys(language: string): string[] {
const languageKeys: string[] = [];
Expand Down

0 comments on commit 2c7e987

Please sign in to comment.