8000 GitHub - tmair/angular-translate at module-name
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tmair/angular-translate

 
 

Repository files navigation

angular-translate Build Status Build Status Dependency Status

i18n in your AngularJS apps

Checkout the demos and help out making things better. You can start by reading the docs. If you like the module and use it in your projects, make it public on ngmodules!

There's also a mailinglist for questions and discussions.

Features

  • translate filter
  • translate directive
  • translate service
  • multi-lang support
  • asynchronous/lazy loading support

Attention: Since we're currently working on a specification for Reusable Angular Components, this project will have some breaking changes once the spec is called final.

Quick Start

Install module via Bower:

$ bower install angular-translate

Inject angular-translate module as a dependency into your app:

var app = angular.module('myApp', ['pascalprecht.translate']);

Teach $translateProvider translations:

app.config(['$translateProvider', function ($translateProvider) {
  $translateProvider.translations({
    'TITLE': 'Hello',
    'FOO': 'This is a paragraph',
  });
}]);

Translate your app:

<h1>{{ 'TITLE' | translate }}</h1>
<p>{{ 'FOO' | translate }}</p>

To learn what else is possible, read the full documentation.

Extensions

There are some pretty cool extensions you probably find interesting:

Contributors

Special thanks are going to the following devs who put a lot of love into this module:

WTFPL

About

i18n in your Angular apps, made easy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.8%
  • CSS 1.9%
  • Shell 0.3%
0