]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
making change for #575 with unit tests
authorTim Wood <washwithcare@gmail.com>
Wed, 23 Jan 2013 18:55:54 +0000 (10:55 -0800)
committerTim Wood <washwithcare@gmail.com>
Wed, 23 Jan 2013 18:55:54 +0000 (10:55 -0800)
lang/sv.js
test/lang/sv.js

index 8b283d3b4cddbf4e378533ae7c3c177668908b78..77cd934c406c81423f1109e266ffb16b1a35e94e 100644 (file)
@@ -25,7 +25,7 @@ require('../moment').lang('sv', {
     },
     relativeTime : {
         future : "om %s",
-        past : "för %s sen",
+        past : "för %s sedan",
         s : "några sekunder",
         m : "en minut",
         mm : "%d minuter",
index e1e8492bc0894e3a06179a983203029fff8222f4..9fe33e8a3bdd11ef1bb6dd91b24434dc9c752163 100644 (file)
@@ -168,13 +168,13 @@ exports["lang:sv"] = {
     "suffix" : function(test) {
         test.expect(2);
         test.equal(moment(30000).from(0), "om några sekunder",  "prefix");
-        test.equal(moment(0).from(30000), "för några sekunder sen", "suffix");
+        test.equal(moment(0).from(30000), "för några sekunder sedan", "suffix");
         test.done();
     },
 
     "now from now" : function(test) {
         test.expect(1);
-        test.equal(moment().fromNow(), "för några sekunder sen",  "now from now should display as in the past");
+        test.equal(moment().fromNow(), "för några sekunder sedan",  "now from now should display as in the past");
         test.done();
     },