angular-chrome-i18n

1.0.0 • Public • Published

Angular Chrome i18n

This angular software provides a set of tools to retrieve translations from the internationalizated messages.json file used for Chrome Apps and Extentions.

Reference: https://developer.chrome.com/apps/i18n

Usage

As a filter (Recomended)

In yout template

<div>
  <input type="email" />
  <input type="password" />
  <button>{{ 'loginText' | i18n }}</button>
</div>

In Javascript

app.controller('MyController', function ($filter) {
  $scope.appTitle = $filter('i18n')('appTitle');
});

As a directive

Apply the i18ndirective passing a message key. E.g.

<header>
  <h2 i18n="welcomeText"></h2>
</header>

Readme

Keywords

Package Sidebar

Install

npm i angular-chrome-i18n

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • gabrielschlomo