Skip to content

Commit

Permalink
Merge d64c2c3 into 0dcaaa6
Browse files Browse the repository at this point in the history
  • Loading branch information
guycatayew committed Oct 27, 2020
2 parents 0dcaaa6 + d64c2c3 commit 9c37bea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/locale/tk.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export default moment.defineLocale('tk', {
sameElse: 'L',
},
relativeTime: {
future: '%s soň',
past: '%s öň',
future: '%s galdy',
past: '%s geçdi',
s: 'birnäçe sekunt',
m: 'bir minut',
mm: '%d minut',
Expand Down
10 changes: 5 additions & 5 deletions src/test/locale/tk.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,25 +290,25 @@ test('from', function (assert) {
});

test('suffix', function (assert) {
assert.equal(moment(30000).from(0), 'birnäçe sekunt soň', 'prefix');
assert.equal(moment(0).from(30000), 'birnäçe sekunt öň', 'suffix');
assert.equal(moment(30000).from(0), 'birnäçe sekunt galdy', 'prefix');
assert.equal(moment(0).from(30000), 'birnäçe sekunt geçdi', 'suffix');
});

test('now from now', function (assert) {
assert.equal(
moment().fromNow(),
'birnäçe sekunt öň',
'birnäçe sekunt geçdi',
'now from now should display as in the past'
);
});

test('fromNow', function (assert) {
assert.equal(
moment().add({ s: 30 }).fromNow(),
'birnäçe sekunt soň',
'birnäçe sekunt galdy',
'in a few seconds'
);
assert.equal(moment().add({ d: 5 }).fromNow(), '5 gün soň', 'in 5 days');
assert.equal(moment().add({ d: 5 }).fromNow(), '5 gün galdy', 'in 5 days');
});

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

0 comments on commit 9c37bea

Please sign in to comment.