Skip to content

Commit

Permalink
feat: expand some typings
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Jan 9, 2024
1 parent 81dd1b6 commit 8167a09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/i18n/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export function getCookies() {
*
* @param {string} code
* @memberof module:Internationalization
* @returns {string}
*/
export function getPrimaryLanguageSubtag(code) {
return code.split('-')[0];
Expand Down Expand Up @@ -179,7 +180,7 @@ export function getLocale(locale) {
* Returns messages for the provided locale, or the user's preferred locale if no argument is
* provided.
*
* @param {string} [locale=getLocale()]
* @param {string} [locale]
* @returns {Messages}
* @memberof module:Internationalization
*/
Expand All @@ -192,6 +193,7 @@ export function getMessages(locale = getLocale()) {
*
* @param {string} locale
* @memberof module:Internationalization
* @returns {boolean}
*/
export function isRtl(locale) {
return rtlLocales.includes(locale);
Expand Down

0 comments on commit 8167a09

Please sign in to comment.