Giter VIP home page Giter VIP logo

angular-i18n's People

Contributors

angleman avatar davecranwell avatar lpmi-13 avatar lucasrainett avatar madkoding avatar nolazybits avatar sonarxavier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-i18n's Issues

How to cache i18n json files?

Hey there,

I'm interested in using this. But I'm not keen for it to make an XHR request to retrieve the localization file though, as I'm building a mobile/cordova app.

I'm using RequireJS and Grunt to create my production build .js file. If my build process appends the correct localisation file (say, en-US.js), is there a way we could have this refer to that file?

I'm thinking the same way https://github.com/ericclemmons/grunt-angular-templates can bundle templates directly into the $templateCache, so the template thing in Angular will fetch from the cache rather than making the XHR request.

What do you think? I'm pretty new to AngularJS and don't know the best way to do things.

not translated

Hello, and thank you for this great library.
Unfortunately, when i put something like this in my template :

                      {{'home.link'|i18n}}

"home.link" is rendered...

In my json files i have :

                     [{"home.link" : "Home !!!!!"}]

Do you know how can i solve it ?
Thank you very much.

Default values for `allowPartialFileLoading` and `fileURL` conflict

The default configuration for this module looks for files of the format "/i18n/|LANG||PART|.json"_.

Since allowPartialFileLoading is disabled by default, it looks for a file named "/i18n/en-US|PART|.json"_ which seems silly to me.

I propose setting the default value for fileURL to be '/i18n/|LANG|.json'. Looking at the readme definition for the fileURL option, it looks like this used to be the default.

I'd be happy to submit a PR. let me know what you think!

Fallback object should be able to handle sections

Right now the fallback object is a flat object.
If the user decides to use partial loading (ie section, and want to have same key name in those section) this should be supported by the fallback object.
So if allowPartialLoading is true, and a section is passed, we should check in the fallback object like

_this.fallback[section][id]

Option to display / highlight untranslated IDs

We should have an option to display / hightlight untranslated IDs.
eg:

$i18nProvider.showUntranslated = function(lang, value, section, placeholders): string
{
return <string>
}

this function (if set) will be called when no translation are found.

how to.

There isn't a how to use angularjs-i18n?
I'm new to angular and I don't know how to use it in my application.

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.