Skip to content

Commit

Permalink
Order of params
Browse files Browse the repository at this point in the history
  • Loading branch information
stephband committed Aug 27, 2024
1 parent a42ce02 commit 00e3a27
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scope/pluralise.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

export default function pluralise(str1, str2, lang, value) {
export default function pluralise(value, str1, str2, lang) {
if (typeof value !== 'number') { return; }

// TODO: We could get lang from the closest parent with lang

// TODO: We could get lang from the closest parent with lang?
str1 = str1 || '';
str2 = str2 || 's';

Expand Down

0 comments on commit 00e3a27

Please sign in to comment.