From: Petar Petrov Date: Fri, 24 Apr 2020 11:23:12 +0000 (+0300) Subject: [locale] Tweak bg translation for last week (#5006) X-Git-Tag: 2.25.0~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=135b85e11f563cdda8e91d4955c4745056c9049d;p=thirdparty%2Fmoment.git [locale] Tweak bg translation for last week (#5006) * 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 --- diff --git a/src/locale/bg.js b/src/locale/bg.js index 764a6e81e..2f97ca25d 100644 --- a/src/locale/bg.js +++ b/src/locale/bg.js @@ -28,12 +28,12 @@ export default moment.defineLocale('bg', { case 0: case 3: case 6: - return '[В изминалата] dddd [в] LT'; + return '[Миналата] dddd [в] LT'; case 1: case 2: case 4: case 5: - return '[В изминалия] dddd [в] LT'; + return '[Миналия] 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. } }); - diff --git a/src/test/locale/bg.js b/src/test/locale/bg.js index cfb3fe1e6..7b7373197 100644 --- a/src/test/locale/bg.js +++ b/src/test/locale/bg.js @@ -183,12 +183,12 @@ test('calendar last week', function (assert) { case 0: case 3: case 6: - return '[В изминалата] dddd [в] LT'; + return '[Миналата] dddd [в] LT'; case 1: case 2: case 4: case 5: - return '[В изминалия] dddd [в] LT'; + return '[Миналия] 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'); }); -