GithubHelp home page GithubHelp logo

robisim74 / angular-l10n-sample Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 16.0 18.76 MB

Angular l10n sample

Home Page: https://github.com/robisim74/angular-l10n

License: MIT License

HTML 28.35% TypeScript 58.32% JavaScript 2.70% CSS 10.64%

angular-l10n-sample's People

Contributors

robisim74 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

angular-l10n-sample's Issues

DefineDefaultLocale not working

in app.module.ts

lets say you set this.locale.AddConfiguration().DefineDefaultLocale('it', 'IT') instead of this.locale.AddConfiguration()DefineDefaultLocale('en', 'US')
the language does not change.
console.log(this.locale.defaultLocale.languageCode) // --> "en"

Am i doing something wrong here?

"No key" every where

Hello Roberto,

Your sample have an issue where a lot of words do not translate but display "No key" at the first time loading. Do you know what is the issue? I have the same problem in my website.

Directive translation issue when variable is not initialise.

I am trying to use directive to localise my date and numbers. I notice that if I did not initialise the variable the directive will stop working. This is a problem to me because my date is retrieve from the database using observerables and will not be initialise at first when the page loads

This is a sample I used to reproduce the issue.
HTML
{{testDate}}
{{testNumber}}
{{testDate2}} // not working
{{testNumber2}} // not working

TS
private testDate: Date = new Date();
private testNumber: number = 1000;
private testDate2: Date; // Not initialise
private testNumber2: number; // Not initialise

ngOnInit() {
setInterval(() => {
this.testIncrement = this.testIncrement + 1;
this.testDate = new Date();
this.testDate2 = new Date();
this.testNumber = 1000 + this.testIncrement;
this.testNumber2 = 1000 + this.testIncrement;
}, 1000);
}

[need help] Routing for node.js

Hello, sorry about that, it really stupid question, but I need your advice
I can not figure out what I should do with node.js, how to configure it...

What I did:

I had this URL - http://localhost:8080/#/home

@NgModule({
    imports: [
        RouterModule.forRoot(routes, {
            useHash: false, /////////////////////////// I disabled hash stategy
            preloadingStrategy: PreloadAllModules
        })
    ],
    exports: [RouterModule]
})

Right now, I have this URL http://localhost:8080/home

But after I pressed the F5 button I'm getting exceptions
Cannot GET /home

I guess, the fix should be very easy, but I can find nothing about routing in the project

Number validation not working in Italian and Arabic

To replicate:

    1. Clone & install repository, run via npm start, open localhost to browse
  1. Go to validation via the menu; select US or GB validation
  2. Enter number (used 4.33) in validation form; submit: See validation pass
  3. Switch to Italian or Arabic; repeat process: Validation fails.
  4. Enter number and validate in US/GB; switch to IT/AR; click submit: Number's value reported as NaN.

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.