Skip to content

Commit

Permalink
style: improve jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Jun 20, 2020
1 parent 0a5c5e1 commit c0d5343
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ import { firstValue, mergeObjects, sortedUniq } from '@lykmapipo/common';
import { getString, getStringSet, getObject } from '@lykmapipo/env';
import I18N from 'i18n';

// local scoped i18n register
// local scoped i18n registry
let i18n = {};

// TODO: grab staticCatalog from env(I18N_STATIC_CATALOGUE),
// and merge with provided

/**
* @function withEnv
* @name withEnv
Expand Down Expand Up @@ -361,10 +358,10 @@ export const h = (phrase) => {
*
* import { n } from '@lykmapipo/i18n';
*
* n('You have %s message', 1); // You have 1 message
* n('You have %s message', 'sw', 1); // Una meseji 1
* n('You have %s message', 4); // You have 4 messages
* n('You have %s message', 'sw', 4); // Una meseji 4
* n('You have %s message', 1); // => You have 1 message
* n('You have %s message', 'sw', 1); // => Una meseji 1
* n('You have %s message', 4); // => You have 4 messages
* n('You have %s message', 'sw', 4); // => Una meseji 4
*
*/
export const n = (phrase, locale, count) => {
Expand Down

0 comments on commit c0d5343

Please sign in to comment.