blob: 69eef1e9d770bbba691e2f84e638d143b85bb1e7 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 | <!document html>
<html ng-app>
  <head>
    <meta charset="utf-8">
    <title>locale test</title>
    <script src="../../build/angular.js"></script>
    <script src="../../build/i18n/angular-locale_sk-sk.js"></script>
    <script>
      function AppCntl($scope){
        $scope.input = 234234443432;
        $scope.plInput = 1;
      }
    </script>
  </head>
  <body ng-controller="AppCntl">
    <input type="text" ng-model="input" value="234234443432"><br>
    date: {{input | date:"medium"}}<br>
    date: {{input | date:"longDate"}}<br>
    number: {{input | number}}<br>
    currency: {{input | currency }}
    <hr/>
    <input type="text" ng-model="plInput"><br>
    <ng-pluralize count="plInput"
                  when= "{ 'one': 'Mas jeden email!',
                           'few': 'Mas {} emaily!',
                           'other': 'Mas {} emailov!'}">
    </ng-pluralize>
  </body>
</html>
 |