-
-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Orlando Karamani <[email protected]>
- Loading branch information
1 parent
ab7ff25
commit 1b38200
Showing
7 changed files
with
799 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -429,7 +429,7 @@ angular.module('docs', | |
prefix: 'locale/', | ||
suffix: '[email protected]@' | ||
}) | ||
.registerAvailableLanguageKeys(['en', 'es', 'pt', 'fr', 'de', 'el', 'ru', 'it', 'pl', 'zh_CN', 'zh_TW'], { | ||
.registerAvailableLanguageKeys(['en', 'es', 'pt', 'fr', 'de', 'el', 'ru', 'it', 'pl', 'zh_CN', 'zh_TW', 'sq_AL'], { | ||
'en_*': 'en', | ||
'es_*': 'es', | ||
'pt_*': 'pt', | ||
|
@@ -547,7 +547,8 @@ angular.module('docs', | |
{ key: 'dan', label: 'Dansk' }, | ||
{ key: 'nor', label: 'Norsk' }, | ||
{ key: 'vie', label: 'Tiếng Việt' }, | ||
{ key: 'ces', label: 'Czech' } | ||
{ key: 'ces', label: 'Czech' }, | ||
{ key: 'sqi', label: 'Shqip' } | ||
]; | ||
}) | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ angular.module('share', | |
prefix: 'locale/', | ||
suffix: '[email protected]@' | ||
}) | ||
.registerAvailableLanguageKeys(['en', 'es', 'pt', 'fr', 'de', 'el', 'ru', 'it', 'pl', 'zh_CN', 'zh_TW'], { | ||
.registerAvailableLanguageKeys(['en', 'es', 'pt', 'fr', 'de', 'el', 'ru', 'it', 'pl', 'zh_CN', 'zh_TW', 'sq_AL'], { | ||
'en_*': 'en', | ||
'es_*': 'es', | ||
'pt_*': 'pt', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
150 changes: 150 additions & 0 deletions
150
docs-web/src/main/webapp/src/locale/angular-locale_sq_AL.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
'use strict'; | ||
angular.module("ngLocale", [], ["$provide", function($provide) { | ||
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; | ||
function getDecimals(n) { | ||
n = n + ''; | ||
var i = n.indexOf('.'); | ||
return (i == -1) ? 0 : n.length - i - 1; | ||
} | ||
|
||
function getVF(n, opt_precision) { | ||
var v = opt_precision; | ||
|
||
if (undefined === v) { | ||
v = Math.min(getDecimals(n), 3); | ||
} | ||
|
||
var base = Math.pow(10, v); | ||
var f = ((n * base) | 0) % base; | ||
return {v: v, f: f}; | ||
} | ||
|
||
$provide.value("$locale", { | ||
"DATETIME_FORMATS": { | ||
"AMPMS": [ | ||
"PD", | ||
"MD" | ||
], | ||
"DAY": [ | ||
"E Diel", | ||
"E Hënë", | ||
"E Martë", | ||
"E Mërkurë", | ||
"E Enjte", | ||
"E Premte", | ||
"E Shtunë" | ||
], | ||
"ERANAMES": [ | ||
"Para Krishtit", | ||
"Pas Krishtit" | ||
], | ||
"ERAS": [ | ||
"p.K.", | ||
"n.K." | ||
], | ||
"FIRSTDAYOFWEEK": 1, | ||
"MONTH": [ | ||
"Janar", | ||
"Shkurt", | ||
"Mars", | ||
"Prill", | ||
"Maj", | ||
"Qershor", | ||
"Korrik", | ||
"Gusht", | ||
"Shtator", | ||
"Tetor", | ||
"Nëntor", | ||
"Dhjetor" | ||
], | ||
"SHORTDAY": [ | ||
"Die", | ||
"Hën", | ||
"Mar", | ||
"Mër", | ||
"Enj", | ||
"Pre", | ||
"Sht" | ||
], | ||
"SHORTMONTH": [ | ||
"Jan", | ||
"Shk", | ||
"Mar", | ||
"Pri", | ||
"Maj", | ||
"Qer", | ||
"Kor", | ||
"Gus", | ||
"Sht", | ||
"Tet", | ||
"Nën", | ||
"Dhj" | ||
], | ||
"STANDALONEMONTH": [ | ||
"Janar", | ||
"Shkurt", | ||
"Mars", | ||
"Prill", | ||
"Maj", | ||
"Qershor", | ||
"Korrik", | ||
"Gusht", | ||
"Shtator", | ||
"Tetor", | ||
"Nëntor", | ||
"Dhjetor" | ||
], | ||
"WEEKENDRANGE": [ | ||
6, | ||
0 | ||
], | ||
"fullDate": "EEEE, d MMMM y", | ||
"longDate": "d MMMM y", | ||
"medium": "d MMM y h:mm:ss a", | ||
"mediumDate": "d MMM y", | ||
"mediumTime": "h:mm:ss a", | ||
"short": "yy-MM-dd h:mm a", | ||
"shortDate": "yy-MM-dd", | ||
"shortTime": "h:mm a" | ||
}, | ||
"NUMBER_FORMATS": { | ||
"CURRENCY_SYM": "Lek", | ||
"DECIMAL_SEP": ".", | ||
"GROUP_SEP": ",", | ||
"PATTERNS": [ | ||
{ | ||
"gSize": 3, | ||
"lgSize": 3, | ||
"maxFrac": 3, | ||
"minFrac": 0, | ||
"minInt": 1, | ||
"negPre": "-", | ||
"negSuf": "", | ||
"posPre": "", | ||
"posSuf": "" | ||
}, | ||
{ | ||
"gSize": 3, | ||
"lgSize": 3, | ||
"maxFrac": 2, | ||
"minFrac": 2, | ||
"minInt": 1, | ||
"negPre": "-\u00a4", | ||
"negSuf": "", | ||
"posPre": "\u00a4", | ||
"posSuf": "" | ||
} | ||
] | ||
}, | ||
"id": "sq-al", | ||
"localeID": "sq_AL", | ||
"pluralCat": function(n, opt_precision) { | ||
var i = n | 0; | ||
var vf = getVF(n, opt_precision); | ||
if (i == 1 && vf.v == 0) { | ||
return PLURAL_CATEGORY.ONE; | ||
} | ||
return PLURAL_CATEGORY.OTHER; | ||
} | ||
}); | ||
}]); |
Oops, something went wrong.