twinssbc / Ionic-Calendar

A calendar directive for Ionic framework
http://twinssbc.github.io/Ionic-Calendar/demo
MIT License
159 stars 73 forks source link

i18n - Translations #21

Closed raphaelgodoi closed 8 years ago

raphaelgodoi commented 8 years ago

we need to implement this...

twinssbc commented 8 years ago

@raphagodoi Could you give an example? Which part needs i18n?

danny-36 commented 8 years ago

i18n for formatting Month or Day of the week in the correct language

twinssbc commented 8 years ago

I just include the angular locale script and the day header and view title can be translated correctly.

According to this article, the angular-translate can also help. http://robferguson.org/2015/07/22/internationalisation-i18n-and-localisation-l10n-for-ionic-apps/

danny-36 commented 8 years ago

interesting but the problem is the name of month displayed in calendar, for example "May, June, July" displayed in {{viewTitle}} on month view, how can I translate this in italian?

twinssbc commented 8 years ago

I just included below script, and the viewTitle is displayed as the below screenshot.

    <script src="http://code.angularjs.org/1.4.3/i18n/angular-locale_it-it.js"></script>

Does that meet your requirement?

screen shot 2016-05-04 at 9 03 31 pm

danny-36 commented 8 years ago

Great! Thank you.