Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n #60

Closed
mambax opened this issue Mar 21, 2016 · 1 comment
Closed

i18n #60

mambax opened this issue Mar 21, 2016 · 1 comment

Comments

@mambax
Copy link

mambax commented Mar 21, 2016

I can't see any support for i18n, are you still working this project and if yes is there / will there be any i18n support?

Offtopic: I'm not sure if this is an issue, if not please accept my apology, my thought behind: Maybe others search for this info too, so this is a good place to find information.

@mobinni
Copy link
Owner

mobinni commented Mar 24, 2016

You are too polite haha!
As for i18n you can set that up with momentjs. you need to default momentjs to a certain language in your project. Your calendar headers are 2-way databinding so you can switch out the headers you pass to the component on the fly.

    <mb-datepicker element-id='date1'
                   input-class="testClass"
                   input-name="testName"
                   arrows="arrows"
                   calendar-header="MYHEADERSSCOPEVAR"
                   date="date"
                   date-format="YYYY-MM-DD"></mb-datepicker>

MYHEADERSSCOPEVAR, when this changes so do the values. Although I think you pointed out a vulnerability in my code. I use '::calendarHeader' this should not be :: (one-way). If you open a pull request to fix this I will accept it. Otherwise you'll have to wait, since I'm short on time to fix this issue (work and all that :/) Sorry!

@mobinni mobinni closed this as completed Dec 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants