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

Specifying View-Specific Options for a language doesn't work #2850

Closed
espen opened this issue Sep 2, 2015 · 2 comments
Closed

Specifying View-Specific Options for a language doesn't work #2850

espen opened this issue Sep 2, 2015 · 2 comments

Comments

@espen
Copy link
Contributor

espen commented Sep 2, 2015

Before it was possible to specify the view hash for one language settings. After converting to View-Specific Options that is not possible. I can provide a full failing example but basically this doesn't work:

$.fullCalendar.lang('nb', {
  views: {
    month: {
      titleFormat: 'MMMM YYYY',
      columnFormat: 'ddd'
    }
 }
});
@arshaw
Copy link
Member

arshaw commented Jun 5, 2016

@arshaw
Copy link
Member

arshaw commented Jun 6, 2016

but i guess that's beside the point. I would actually prefer to not allow i18n files to specify settings specific to views, because that won't scale up when new views are introduced, or in situations where a view can have an arbitrary duration (like Timeline or a custom view of basic/agenda).

I'd rather come up with a way to more intelligently compute a format string based on the given lang settings, like computeTitleFormat, even if that means adding new settings to the core options.

@arshaw arshaw closed this as completed Jun 6, 2016
@arshaw arshaw removed the Reproducing label Jun 6, 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