52 lines
1.6 KiB
TypeScript
52 lines
1.6 KiB
TypeScript
/**
|
||
* @license
|
||
* Copyright Google Inc. All Rights Reserved.
|
||
*
|
||
* Use of this source code is governed by an MIT-style license that can be
|
||
* found in the LICENSE file at https://angular.io/license
|
||
*/
|
||
|
||
// THIS CODE IS GENERATED - DO NOT MODIFY
|
||
// See angular/tools/gulp-tasks/cldr/extract.js
|
||
|
||
import {Plural} from '@angular/common';
|
||
|
||
export default [
|
||
'sv',
|
||
[
|
||
['fm', 'em'],
|
||
,
|
||
],
|
||
[['fm', 'em'], ['f.m.', 'e.m.'], ['förmiddag', 'eftermiddag']],
|
||
[
|
||
['S', 'M', 'T', 'O', 'T', 'F', 'L'], ['sön', 'mån', 'tis', 'ons', 'tors', 'fre', 'lör'],
|
||
['söndag', 'måndag', 'tisdag', 'onsdag', 'torsdag', 'fredag', 'lördag'],
|
||
['sö', 'må', 'ti', 'on', 'to', 'fr', 'lö']
|
||
],
|
||
,
|
||
[
|
||
['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
|
||
['jan.', 'feb.', 'mars', 'apr.', 'maj', 'juni', 'juli', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'],
|
||
[
|
||
'januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september',
|
||
'oktober', 'november', 'december'
|
||
]
|
||
],
|
||
, [['f.Kr.', 'e.Kr.'], , ['före Kristus', 'efter Kristus']], 1, [6, 0],
|
||
['y-MM-dd', 'd MMM y', 'd MMMM y', 'EEEE d MMMM y'],
|
||
['HH:mm', 'HH:mm:ss', 'HH:mm:ss z', '\'kl\'. HH:mm:ss zzzz'],
|
||
[
|
||
'{1} {0}',
|
||
,
|
||
,
|
||
],
|
||
[',', ' ', ';', '%', '+', '−', '×10^', '×', '‰', '∞', '¤¤¤', ':'],
|
||
['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'], 'kr', 'svensk krona',
|
||
function(n: number):
|
||
Plural {
|
||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||
if (i === 1 && v === 0) return Plural.One;
|
||
return Plural.Other;
|
||
}
|
||
];
|