]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[locale] pt-br: Simplify pt-br past relativeTime (#4195)
authorEduardo Dalla Vecchia <edu@rdo.blog.br>
Fri, 2 Mar 2018 18:57:57 +0000 (15:57 -0300)
committerKunal Marwaha <marwahaha@berkeley.edu>
Fri, 2 Mar 2018 18:57:57 +0000 (10:57 -0800)
src/locale/pt-br.js
src/test/locale/pt-br.js

index 9c4c0594a057e6ae4fbb9e7a26a797893f56bf58..bcfe245b29954e9880abc043e8a942ed0e003ac2 100644 (file)
@@ -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',
index c87240927042eea10447f084aaf7b60282fdb928..2e4a92cb66ea6c433406e13a1d897fe4abe1753f 100644 (file)
@@ -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);
 });