Giter Site home page Giter Site logo

angleman / angular-translate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from angular-translate/angular-translate

0.0 2.0 0.0 1.11 MB

i18n in your Angular apps, made easy.

Home Page: http://pascalprecht.github.io/angular-translate/#/guide

License: Do What The F*ck You Want To Public License

angular-translate's Introduction

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

angular-translate's People

Contributors

0x-r4bbit avatar cburgdorf avatar dwand avatar gjungb avatar jamesandres avatar knalli avatar lanlau avatar sebholstein avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.