Skip to content

Commit

Permalink
Merge pull request #5310 from StoyanDimitrov:patch-1
Browse files Browse the repository at this point in the history
[locale] bg: Improve cardinal nouns
  • Loading branch information
ichernev committed Apr 24, 2020
2 parents 01e9feb + 97bbc3b commit 01e59f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/locale/bg.js
Expand Up @@ -48,7 +48,7 @@ export default moment.defineLocale('bg', {
h : 'час',
hh : '%d часа',
d : 'ден',
dd : '%d дни',
dd : '%d дена',
M : 'месец',
MM : '%d месеца',
y : 'година',
Expand Down
8 changes: 4 additions & 4 deletions src/test/locale/bg.js
Expand Up @@ -120,10 +120,10 @@ test('from', function (assert) {
assert.equal(start.from(moment([2007, 1, 28]).add({h: 21}), true), '21 часа', '21 hours = 21 hours');
assert.equal(start.from(moment([2007, 1, 28]).add({h: 22}), true), 'ден', '22 hours = a day');
assert.equal(start.from(moment([2007, 1, 28]).add({h: 35}), true), 'ден', '35 hours = a day');
assert.equal(start.from(moment([2007, 1, 28]).add({h: 36}), true), '2 дни', '36 hours = 2 days');
assert.equal(start.from(moment([2007, 1, 28]).add({h: 36}), true), '2 дена', '36 hours = 2 days');
assert.equal(start.from(moment([2007, 1, 28]).add({d: 1}), true), 'ден', '1 day = a day');
assert.equal(start.from(moment([2007, 1, 28]).add({d: 5}), true), '5 дни', '5 days = 5 days');
assert.equal(start.from(moment([2007, 1, 28]).add({d: 25}), true), '25 дни', '25 days = 25 days');
assert.equal(start.from(moment([2007, 1, 28]).add({d: 5}), true), '5 дена', '5 days = 5 days');
assert.equal(start.from(moment([2007, 1, 28]).add({d: 25}), true), '25 дена', '25 days = 25 days');
assert.equal(start.from(moment([2007, 1, 28]).add({d: 26}), true), 'месец', '26 days = a month');
assert.equal(start.from(moment([2007, 1, 28]).add({d: 30}), true), 'месец', '30 days = a month');
assert.equal(start.from(moment([2007, 1, 28]).add({d: 43}), true), 'месец', '43 days = a month');
Expand All @@ -149,7 +149,7 @@ test('now from now', function (assert) {

test('fromNow', function (assert) {
assert.equal(moment().add({s: 30}).fromNow(), 'след няколко секунди', 'in a few seconds');
assert.equal(moment().add({d: 5}).fromNow(), 'след 5 дни', 'in 5 days');
assert.equal(moment().add({d: 5}).fromNow(), 'след 5 дена', 'in 5 days');
});

test('calendar day', function (assert) {
Expand Down

0 comments on commit 01e59f2

Please sign in to comment.