Skip to content

Commit

Permalink
Minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
maranomynet committed Dec 18, 2015
1 parent 61a9116 commit 6c94813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Usage:
var translate = require('translate.js');

var messages = {
translationKey: 'translationValue'
translationKey: 'Translation value'
};

var options = {
Expand Down Expand Up @@ -151,7 +151,7 @@ var pluralize_IS = function ( n, tarnslationKey ) {
// Icelandic rules: Numbers ending in 1 are singular - unless ending in 11.
return (n%10 !== 1 || n%100 === 11) ? 'p' : 's';
};
var t = translate( messages_IS, { pluralize:pluralize_IS });
var t = translate( messages_IS, { pluralize: pluralize_IS });

t('sheep', 0) => 'Engar kindur'
t('sheep', 1) => '1 kind'
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('translate.js', function() {

'Prosa Key': 'This is prosa!',

comboCounter: '{name} is {n} years old.',
'comboCounter': '{name} is {n} years old.',
};

var t = translate( translationsObject );
Expand Down

0 comments on commit 6c94813

Please sign in to comment.