]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[locale] Tweak bg translation for last week (#5006)
authorPetar Petrov <MindFreeze@users.noreply.github.com>
Fri, 24 Apr 2020 11:23:12 +0000 (14:23 +0300)
committerGitHub <noreply@github.com>
Fri, 24 Apr 2020 11:23:12 +0000 (14:23 +0300)
* Tweak bg translation for last week

The current translation adds a very specific and mostly unnecessary 'at' in the beginning. It just looks/sounds wrong. Maybe there are cases when this might be correct but surely not most of the time. [insert 'change my mind' meme]

* move bg changes to proper files

src/locale/bg.js
src/test/locale/bg.js

index 764a6e81eee33189b19d861a4de71d1637bedb92..2f97ca25d1d25ccf87905d134f390f91ce4c348a 100644 (file)
@@ -28,12 +28,12 @@ export default moment.defineLocale('bg', {
                 case 0:
                 case 3:
                 case 6:
-                    return '[Ð\92 Ð¸Ð·Ð¼иналата] dddd [в] LT';
+                    return '[Ð\9cиналата] dddd [в] LT';
                 case 1:
                 case 2:
                 case 4:
                 case 5:
-                    return '[Ð\92 Ð¸Ð·Ð¼иналия] dddd [в] LT';
+                    return '[Ð\9cиналия] dddd [в] LT';
             }
         },
         sameElse : 'L'
@@ -79,4 +79,3 @@ export default moment.defineLocale('bg', {
         doy : 7  // The week that contains Jan 7th is the first week of the year.
     }
 });
-
index cfb3fe1e6af2754736ca08d047e79b1fc05619da..7b7373197f86118f189d3f37af6b118c4697e812 100644 (file)
@@ -183,12 +183,12 @@ test('calendar last week', function (assert) {
             case 0:
             case 3:
             case 6:
-                return '[Ð\92 Ð¸Ð·Ð¼иналата] dddd [в] LT';
+                return '[Ð\9cиналата] dddd [в] LT';
             case 1:
             case 2:
             case 4:
             case 5:
-                return '[Ð\92 Ð¸Ð·Ð¼иналия] dddd [в] LT';
+                return '[Ð\9cиналия] dddd [в] LT';
         }
     }
 
@@ -223,4 +223,3 @@ test('weeks year starting sunday formatted', function (assert) {
     assert.equal(moment([2012,  0,  8]).format('w ww wo'), '2 02 2-ри', 'Jan  8 2012 should be week 2');
     assert.equal(moment([2012,  0,  9]).format('w ww wo'), '3 03 3-ти', 'Jan  9 2012 should be week 3');
 });
-