diff --git a/src/locale/pt-br.js b/src/locale/pt-br.js index 9c4c0594a0..bcfe245b29 100644 --- a/src/locale/pt-br.js +++ b/src/locale/pt-br.js @@ -33,7 +33,7 @@ export default moment.defineLocale('pt-br', { }, relativeTime : { future : 'em %s', - past : '%s atrás', + past : 'há %s', s : 'poucos segundos', ss : '%d segundos', m : 'um minuto', diff --git a/src/test/locale/pt-br.js b/src/test/locale/pt-br.js index c872409270..2e4a92cb66 100644 --- a/src/test/locale/pt-br.js +++ b/src/test/locale/pt-br.js @@ -140,7 +140,7 @@ test('from', function (assert) { test('suffix', function (assert) { assert.equal(moment(30000).from(0), 'em poucos segundos', 'prefix'); - assert.equal(moment(0).from(30000), 'poucos segundos atrás', 'suffix'); + assert.equal(moment(0).from(30000), 'há poucos segundos', 'prefix'); }); test('fromNow', function (assert) { @@ -212,9 +212,9 @@ test('relative time threshold', function (assert) { moment.relativeTimeThreshold('ss', 3); rts.subtract(3, 'seconds'); - assert.equal(rts.fromNow(), 'poucos segundos atrás', 'Below custom a few seconds to seconds threshold'); + assert.equal(rts.fromNow(), 'há poucos segundos', 'Below custom a few seconds to seconds threshold'); rts.subtract(1, 'seconds'); - assert.equal(rts.fromNow(), '4 segundos atrás', 'Above custom a few seconds to seconds threshold'); + assert.equal(rts.fromNow(), 'há 4 segundos', 'Above custom a few seconds to seconds threshold'); moment.relativeTimeThreshold('ss', rtsDefault); });