Skip to content

Commit 6d77c85

Browse files
committed
Code doc and .gitignore updated.
Changed the data type from `integer` to `number` to be more accurate with JavaScript data types. `.idea` directory add to `.gitignore`.
1 parent 35fd1ea commit 6d77c85

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2+
.idea
23
npm-debug.log

src/lang.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
/**
8484
* Set the fallback locale being used.
8585
*
86-
* @param string fallback
86+
* @param fallback {string} The fallback locale.
8787
*
8888
* @return void
8989
*/
@@ -146,7 +146,7 @@
146146
* Get the plural or singular form of the message specified based on an integer value.
147147
*
148148
* @param key {string} The key of the message.
149-
* @param count {integer} The number of elements.
149+
* @param count {number} The number of elements.
150150
* @param replacements {object} The replacements to be done in the message.
151151
*
152152
* @return {string} The translation message according to an integer value.
@@ -209,7 +209,7 @@
209209
* This method act as an alias to choice() method.
210210
*
211211
* @param key {string} The key of the message.
212-
* @param count {integer} The number of elements.
212+
* @param count {number} The number of elements.
213213
* @param replacements {object} The replacements to be done in the message.
214214
*
215215
* @return {string} The translation message according to an integer value.

0 commit comments

Comments
 (0)