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

en-GB support #1051

Closed
PhilPJL opened this issue Aug 25, 2014 · 3 comments
Closed

en-GB support #1051

PhilPJL opened this issue Aug 25, 2014 · 3 comments
Milestone

Comments

@PhilPJL
Copy link

PhilPJL commented Aug 25, 2014

The only English locale supported is 'en' which defaults to 'en-US'. I tried adding a new en-GB.js file with the correct date format, but this seems to have no effect. How can I get 'dd/mm/yy' format when setting language to 'en-GB'?

@xavierdutreilh
Copy link
Contributor

Hi @PhilPJL, I just created a new file datepicker-en-GB.js that I submitted with the PR #1061. Everything seems to work pretty well.

For instance, here is an ugly-but-working sample code:

<input type="text" class="datepicker" name="datepicker">
<script src="https://code.jquery.com/jquery-1.11.1.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script src="js/locales/bootstrap-datepicker.en-GB.js"></script>
<script>
  $('.datepicker').datepicker({ language: 'en-GB' });
</script>

@PhilPJL
Copy link
Author

PhilPJL commented Aug 28, 2014

Thanks, I've managed to get it to work. I wasn't referencing the en-GB.js file I created. Hopefully your PR will get merged soon.

@acrobat
Copy link
Member

acrobat commented Dec 11, 2014

This issue is fixed with PR #1096

@acrobat acrobat closed this as completed Dec 11, 2014
@acrobat acrobat added this to the 1.3.1 milestone Dec 11, 2014
@acrobat acrobat mentioned this issue Dec 11, 2014
2 tasks
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

3 participants