---
title: "Working with Internalization in Angularjs"  
description: "Hi everyone in this blog I’m explaining about Angularjs Internalization.Introduction:AngularJS supports inbuilt internationalization for three types o"  
author: "Anonymous User"  
published: 2015-04-14  
updated: 2018-02-24  
canonical: https://www.mindstick.com/blog/10868/working-with-internalization-in-angularjs  
category: "angular js"  
tags: ["angularjs directive", "angularjs filter"]  
reading_time: 2 minutes  

---

# Working with Internalization in Angularjs

Hi everyone in this blog I’m explaining about [Angularjs](https://www.mindstick.com/articles/13081/advantages-disadvantages-of-angularjs-is-that-ideal-for-your-project) Internalization.

#### Introduction:

AngularJS [supports](https://www.mindstick.com/blog/12043/how-to-create-a-killer-mobile-app-that-supports-your-brand) inbuilt internationalization for three types of [filters](https://www.mindstick.com/forum/156119/how-to-use-filters-in-angularjs) [currency](https://www.mindstick.com/articles/311850/currency-wars-what-they-are-and-how-they-work), date and numbers. We only need to incorporate corresponding js according to [locale](https://www.mindstick.com/interview/2482/what-is-locale) of the country. By [default](https://www.mindstick.com/interview/12771/what-is-the-importance-of-default-resources) it handles the locale of the [browser](https://www.mindstick.com/blog/155254/which-is-the-best-internet-browser). For example, use following [script](https://www.mindstick.com/interview/477/how-can-i-execute-a-php-script-using-command-line).

```
<script src="https://code.angularjs.org/1.3.14/i18n/angular-locale_da-dk.js"></script>
```

**Text.html:**

```
<html><head>    <title>Angular JS Forms</title></head><body>    <h2>AngularJS Sample Application</h2>    <div ng-app="mainApp" ng-controller="StudentController">        {{fees | currency }}         <br />        <br />        {{admissiondate | date
}}          <br />        <br />        {{rollno | number }}      </div>    <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>    <script src="https://code.angularjs.org/1.3.14/i18n/angular-locale_da-dk.js"></script>    <script>        var mainApp = angular.module("mainApp",
[]);         mainApp.controller('StudentController', function ($scope) {            $scope.fees = 1000;            $scope.admissiondate =
new Date();            $scope.rollno =
123.45;        });     </script></body></html>
```

**Now run [your application](https://www.mindstick.com/forum/34702/please-tell-me-what-is-cross-site-scripting-and-how-is-it-harmful-for-your-application):**

![Working with Internalization in Angularjs](https://www.mindstick.com/blogs/c2518f0f-4c8c-442a-b6fd-25331282c97d/images/430e65bb-1e69-403c-9d74-b92475bc68dd.png)

## Example using Browser's locale:

## \

**Text.html:**

```
<html><head>    <title>Angular JS Forms</title></head><body>    <h2>AngularJS Sample Application</h2>    <div ng-app="mainApp" ng-controller="StudentController">        {{fees | currency }}         <br />        <br />        {{admissiondate | date }}          <br />        <br />        {{rollno | number }}      </div>    <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>     @*<script
src="https://code.angularjs.org/1.3.14/i18n/angular-locale_da-dk.js"></script>
*@    <script>        var mainApp = angular.module("mainApp", []);         mainApp.controller('StudentController', function ($scope) {            $scope.fees = 100;            $scope.admissiondate = new Date();            $scope.rollno = 123.45;        });     </script></body></html>
```

Now again run your application:

**![Working with Internalization in Angularjs](https://www.mindstick.com/blogs/c2518f0f-4c8c-442a-b6fd-25331282c97d/images/dd13dc64-31da-4fee-8120-03ac14a5b794.png)**

---

Original Source: https://www.mindstick.com/blog/10868/working-with-internalization-in-angularjs

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
