【问题标题】:(IONIC) MomentJS locale not working after build(IONIC) MomentJS 语言环境在构建后不起作用
【发布时间】:2017-07-13 08:17:03
【问题描述】:

我正在使用 IONIC 框架并使用 Moment.js 作为日期。 当我使用法语设置所有字符串时:

moment.locale('fr');

它在离子的“服务”模式下运行良好。但是当我为 Android 或 Ios 构建应用程序时,所有日期都是英文的。

有什么想法吗?

谢谢!

【问题讨论】:

    标签: javascript angularjs ionic-framework momentjs


    【解决方案1】:

    已解决,我刚刚加入了

    moment/min/moment-with-locales.min.js 
    

    代替

    moment/moment.js
    moment/locale/fr.js
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-17
      • 1970-01-01
      • 2020-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多