myliang / fish-ui

A Vue.js 2.0 UI Toolkit for Web

Home Page:https://myliang.github.io/fish-ui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fish UI localization - config locale for moment.js

Deprime opened this issue · comments

Is there any way to set default config for moment.js like moment.locale('fr'); ?

I'm using Fish UI in my project and often use Datepicker component. So by default it has english language. But my project for Russian users.
In Readme.md I find it out, that Fish UI using Moment.js for date-time objects.
So my question is: how can i configurate Datepicker component to localize it in russian language?

not support localization, but you can git clone and modify https://github.com/myliang/fish-ui/blob/master/src/config.js

update to fish-ui@1.1.72
image

Ok. Thanks for the guidance

feedback if there is any problem

Week and month attributes for Datepicker is good decision, but, for example, I need to set the first day of the week - Monday. This is the last trouble for me now )) So it seems that I will still need to change the calendar configuration file.

Week and month attributes for Datepicker is good decision, but, for example, I need to set the first day of the week - Monday. This is the last trouble for me now )) So it seems that I will still need to change the calendar configuration file.

@Deprime update to fish-ui@1.1.73