Skip to content

Commit

Permalink
updated locale file in src/ and src/test/ folders, reverted changes i…
Browse files Browse the repository at this point in the history
…n locale/ folder
  • Loading branch information
Youenn-Bouglouan authored and ichernev committed Dec 24, 2023
1 parent d537aa2 commit aec9747
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions locale/nb.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
ss: '%d sekunder',
m: 'ett minutt',
mm: '%d minutter',
h: 'én time',
h: 'en time',
hh: '%d timer',
d: 'én dag',
d: 'en dag',
dd: '%d dager',
w: 'én uke',
w: 'en uke',
ww: '%d uker',
M: 'én måned',
M: 'en måned',
MM: '%d måneder',
y: 'ett år',
yy: '%d år',
Expand Down
8 changes: 4 additions & 4 deletions src/locale/nb.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ export default moment.defineLocale('nb', {
ss: '%d sekunder',
m: 'ett minutt',
mm: '%d minutter',
h: 'en time',
h: 'én time',
hh: '%d timer',
d: 'en dag',
d: 'én dag',
dd: '%d dager',
w: 'en uke',
w: 'én uke',
ww: '%d uker',
M: 'en måned',
M: 'én måned',
MM: '%d måneder',
y: 'ett år',
yy: '%d år',
Expand Down
18 changes: 9 additions & 9 deletions src/test/locale/nb.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ test('from', function (assert) {
);
assert.equal(
start.from(moment([2007, 1, 28]).add({ m: 45 }), true),
'en time',
'én time',
'45 minutes = an hour'
);
assert.equal(
start.from(moment([2007, 1, 28]).add({ m: 89 }), true),
'en time',
'én time',
'89 minutes = an hour'
);
assert.equal(
Expand All @@ -203,12 +203,12 @@ test('from', function (assert) {
);
assert.equal(
start.from(moment([2007, 1, 28]).add({ h: 22 }), true),
'en dag',
'én dag',
'22 hours = a day'
);
assert.equal(
start.from(moment([2007, 1, 28]).add({ h: 35 }), true),
'en dag',
'én dag',
'35 hours = a day'
);
assert.equal(
Expand All @@ -218,7 +218,7 @@ test('from', function (assert) {
);
assert.equal(
start.from(moment([2007, 1, 28]).add({ d: 1 }), true),
'en dag',
'én dag',
'1 day = a day'
);
assert.equal(
Expand All @@ -233,17 +233,17 @@ test('from', function (assert) {
);
assert.equal(
start.from(moment([2007, 1, 28]).add({ d: 26 }), true),
'en måned',
'én måned',
'26 days = a month'
);
assert.equal(
start.from(moment([2007, 1, 28]).add({ d: 30 }), true),
'en måned',
'én måned',
'30 days = a month'
);
assert.equal(
start.from(moment([2007, 1, 28]).add({ d: 43 }), true),
'en måned',
'én måned',
'43 days = a month'
);
assert.equal(
Expand All @@ -263,7 +263,7 @@ test('from', function (assert) {
);
assert.equal(
start.from(moment([2007, 1, 28]).add({ M: 1 }), true),
'en måned',
'én måned',
'1 month = a month'
);
assert.equal(
Expand Down

0 comments on commit aec9747

Please sign in to comment.