jquery.i18n.properties前端国际化解决方案“填坑日记”

但现在的情况是老的项目并没有使用这类架构。说起国际化,博主几年前就做过,在MVC里面实现国际化有通用的解决方案,主要就是通过资源文件的方式定义多语言。最初接到这个任务,并没有太多顾虑,毕竟这种东西有很成熟的解决方案,实现起来难点不会很大。可当真正动起来手来去实现的时候发现一些问题,这里先介绍下我们老平台的架构:MVC+WebApi,MVC项目负责页面渲染,webapi负责数据接口,是一种很传统的架构方式。国际化主要在MVC端去做就好了,可是由于MVC项目里面使用了大量第三方bootstrap组件,几乎95%的组件都是通过js去实现的,比如bootstrapTable,比如bootstrap-select,比如bootstrap-fileinput。如果按照传统的方式,仅仅在MVC里面去实现国际化,那么大量的js代码里面的中文没法统一处理,并且很多第三方组件有自己的本地化local文件,和后端的国际化很难统一处理;可能有人又说,那就前后端分开国际化呗,这种方案博主真的想过,但是想到要维护两套资源文件,果断放弃。最后还是决定直接维护一套,做前端国际化好了。于是在网上搜索基于jquery的国际化,千篇一律,几乎都说的是jquery + jquery.i18n.properties这种方案,既然大家都这么选型,那博主也按照这种思路去做好了。

在实现的过程中,有很多值得注意和分享的东西,在此写一个填坑笔记,希望对大家有帮助!接下来,博主就一步一步带领大家解决这个过程中遇到的一些坑,如果有这个需求的童鞋可以关注下,可能这些问题你也会遇到。

http://buluo.qq.com/p/detail.html?bid=393816&pid=6064028-1506681825
http://buluo.qq.com/p/detail.html?bid=393816&pid=6064028-1506681827
http://buluo.qq.com/p/detail.html?bid=393816&pid=6064028-1506681829
http://buluo.qq.com/p/detail.html?bid=393816&pid=6064028-1506681832
http://buluo.qq.com/p/detail.html?bid=393816&pid=6064028-1506681834
http://buluo.qq.com/p/detail.html?bid=393816&pid=6064028-1506681837
http://buluo.qq.com/p/detail.html?bid=393816&pid=6064028-1506681839
http://buluo.qq.com/p/detail.html?bid=393816&pid=6064028-1506681842
http://buluo.qq.com/p/detail.html?bid=393816&pid=6064028-1506681844
http://buluo.qq.com/p/detail.html?bid=393816&pid=6064028-1506681846
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506685548
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506685551
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506685553
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506685556
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506685558
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506685561
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506685563
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506685566
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506685568
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506685570
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506689198
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506689201
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506689203
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506689205
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506689208
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506689210
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506689213
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506689215
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506689218
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506689220
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506692856
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506692859
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506692861
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506692864
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506692866
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506692869
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506692871
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506692873
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506692876
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506692878
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506681866
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506681869
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506681871
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506681874
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506681876
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506681878
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506681881
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506681883
http://buluo.qq.com/p/detail.html?bid=393816&pid=8743315-1506685547
http://buluo.qq.com/p/detail.html?bid=393816&pid=8743315-1506685550
http://buluo.qq.com/p/detail.html?bid=393816&pid=8743315-1506685552
http://buluo.qq.com/p/detail.html?bid=393816&pid=8743315-1506685555
http://buluo.qq.com/p/detail.html?bid=393816&pid=8743315-1506685557
http://buluo.qq.com/p/detail.html?bid=393816&pid=8743315-1506685559
http://buluo.qq.com/p/detail.html?bid=393816&pid=8743315-1506685562
http://buluo.qq.com/p/detail.html?bid=393816&pid=8743315-1506685564
http://buluo.qq.com/p/detail.html?bid=393816&pid=8743315-1506685566
http://buluo.qq.com/p/detail.html?bid=393816&pid=8743315-1506685569
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506689180
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506689182
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506689185
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506689184
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506689206
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506689209
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506689211
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506689213
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506689216
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506689218
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506689221
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506689223
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506689225
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506689228
http://buluo.qq.com/p/detail.html?bid=393816&pid=3863849-1506692855
http://buluo.qq.com/p/detail.html?bid=393816&pid=3863849-1506692857
http://buluo.qq.com/p/detail.html?bid=393816&pid=3863849-1506692860
http://buluo.qq.com/p/detail.html?bid=393816&pid=3863849-1506692862
http://buluo.qq.com/p/detail.html?bid=393816&pid=3863849-1506692865
http://buluo.qq.com/p/detail.html?bid=393816&pid=3863849-1506692867
http://buluo.qq.com/p/detail.html?bid=393816&pid=3863849-1506692869
http://buluo.qq.com/p/detail.html?bid=393816&pid=3863849-1506692872
http://buluo.qq.com/p/detail.html?bid=393816&pid=3863849-1506692874
http://buluo.qq.com/p/detail.html?bid=393816&pid=3863849-1506692876
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506681805
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506681808
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506681810
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506681813
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506681815
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506681817
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506681820
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506681822
http://buluo.qq.com/p/detail.html?bid=393816&pid=9311094-1506681825
http://buluo.qq.com/p/detail.html?bid=393816&pid=620908-1506681805
http://buluo.qq.com/p/detail.html?bid=393816&pid=1457489-1506681815
http://buluo.qq.com/p/detail.html?bid=393816&pid=1457489-1506681817
http://buluo.qq.com/p/detail.html?bid=393816&pid=1457489-1506681819
http://buluo.qq.com/p/detail.html?bid=393816&pid=1457489-1506681822
http://buluo.qq.com/p/detail.html?bid=393816&pid=1457489-1506681824
http://buluo.qq.com/p/detail.html?bid=393816&pid=1457489-1506681827
http://buluo.qq.com/p/detail.html?bid=393816&pid=1457489-1506681829
http://buluo.qq.com/p/detail.html?bid=393816&pid=1457489-1506681831
http://buluo.qq.com/p/detail.html?bid=393816&pid=1457489-1506681834
http://buluo.qq.com/p/detail.html?bid=393816&pid=1457489-1506681836
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506685527
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506685530
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506685532
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506685534
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506685537
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506685539
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506685542
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506681835
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506681838
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506681840
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506681843
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506681845
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506681847
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506681850
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506681852
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506681855
http://buluo.qq.com/p/detail.html?bid=393816&pid=841307-1506681857
http://buluo.qq.com/p/detail.html?bid=393816&pid=5936284-1506689218
http://buluo.qq.com/p/detail.html?bid=393816&pid=5936284-1506689221
http://buluo.qq.com/p/detail.html?bid=393816&pid=5936284-1506689223
http://buluo.qq.com/p/detail.html?bid=393816&pid=5936284-1506689226
http://buluo.qq.com/p/detail.html?bid=393816&pid=5936284-1506689228
http://buluo.qq.com/p/detail.html?bid=393816&pid=5936284-1506689230
http://buluo.qq.com/p/detail.html?bid=393816&pid=5936284-1506689233
http://buluo.qq.com/p/detail.html?bid=393816&pid=5936284-1506689235
http://buluo.qq.com/p/detail.html?bid=393816&pid=5936284-1506689238
http://buluo.qq.com/p/detail.html?bid=393816&pid=5936284-1506689240
http://buluo.qq.com/p/detail.html?bid=393816&pid=8076985-1506685532
http://buluo.qq.com/p/detail.html?bid=393816&pid=8076985-1506685534
http://buluo.qq.com/p/detail.html?bid=393816&pid=8076985-1506685536
http://buluo.qq.com/p/detail.html?bid=393816&pid=8076985-1506685539
http://buluo.qq.com/p/detail.html?bid=393816&pid=8076985-1506685541
http://buluo.qq.com/p/detail.html?bid=393816&pid=8076985-1506685544
http://buluo.qq.com/p/detail.html?bid=393816&pid=8076985-1506685546
http://buluo.qq.com/p/detail.html?bid=393816&pid=8076985-1506685548
http://buluo.qq.com/p/detail.html?bid=393816&pid=8076985-1506685551
http://buluo.qq.com/p/detail.html?bid=393816&pid=8076985-1506685553
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506685526
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506685529
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506685531
http://buluo.qq.com/p/detail.html?bid=393816&pid=8420929-1506685527
http://buluo.qq.com/p/detail.html?bid=393816&pid=8420929-1506685529
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506681829
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506681831
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506681834
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506681836
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506681839
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506681841
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506681843
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506681846
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506681848
http://buluo.qq.com/p/detail.html?bid=393816&pid=7187892-1506681851
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506681865
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506681868
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506681870
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506681873
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506681875
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506681877
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506681880
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506681882
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506685517
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506685520
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506685522
http://buluo.qq.com/p/detail.html?bid=393816&pid=4940672-1506685525
http://buluo.qq.com/p/detail.html?bid=393816&pid=74001-1506689246
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506681862
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506681864
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506692865
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506692867
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506685526
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506685529
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506685531
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506685533
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506685536
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506685538
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506685541
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506685543
http://buluo.qq.com/p/detail.html?bid=393816&pid=557173-1506692862
http://buluo.qq.com/p/detail.html?bid=393816&pid=557173-1506692865
http://buluo.qq.com/p/detail.html?bid=393816&pid=557173-1506692867
http://buluo.qq.com/p/detail.html?bid=393816&pid=6054712-1506685541
http://buluo.qq.com/p/detail.html?bid=393816&pid=6054712-1506685543
http://buluo.qq.com/p/detail.html?bid=393816&pid=6054712-1506685545
http://buluo.qq.com/p/detail.html?bid=393816&pid=6054712-1506685548
http://buluo.qq.com/p/detail.html?bid=393816&pid=6054712-1506685550
http://buluo.qq.com/p/detail.html?bid=393816&pid=6054712-1506685553
http://buluo.qq.com/p/detail.html?bid=393816&pid=6054712-1506685555
http://buluo.qq.com/p/detail.html?bid=393816&pid=6054712-1506685557
http://buluo.qq.com/p/detail.html?bid=393816&pid=6054712-1506685560
http://buluo.qq.com/p/detail.html?bid=393816&pid=6054712-1506685562
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506681831
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506681833
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506681836
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506681838
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506681841
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506681843
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506681845
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506681848
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506681850
http://buluo.qq.com/p/detail.html?bid=393816&pid=8475477-1506681853
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506681819
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506681821
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506681824
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506681826
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506681828
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506681831
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506681833
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506681836
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506681838
http://buluo.qq.com/p/detail.html?bid=393816&pid=5235833-1506681840
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506681809
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506681811
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506681813
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506681816
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506681818
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506681821
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506681823
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506681825
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506681828
http://buluo.qq.com/p/detail.html?bid=393816&pid=5753059-1506681830
http://buluo.qq.com/p/detail.html?bid=393816&pid=620908-1506689186
http://buluo.qq.com/p/detail.html?bid=393816&pid=620908-1506689188
http://buluo.qq.com/p/detail.html?bid=393816&pid=620908-1506689191
http://buluo.qq.com/p/detail.html?bid=393816&pid=620908-1506689193
http://buluo.qq.com/p/detail.html?bid=393816&pid=620908-1506689195
http://buluo.qq.com/p/detail.html?bid=393816&pid=620908-1506689198
http://buluo.qq.com/p/detail.html?bid=393816&pid=620908-1506689200
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506685536
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506685538
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506685540
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506685543
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506685545
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506685548
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506685550
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506685552
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506685555
http://buluo.qq.com/p/detail.html?bid=393816&pid=8025006-1506685558
http://buluo.qq.com/p/detail.html?bid=393816&pid=4125412-1506689204
http://buluo.qq.com/p/detail.html?bid=393816&pid=4125412-1506689207
http://buluo.qq.com/p/detail.html?bid=393816&pid=4125412-1506689209
http://buluo.qq.com/p/detail.html?bid=393816&pid=4125412-1506689211
http://buluo.qq.com/p/detail.html?bid=393816&pid=4125412-1506689214
http://buluo.qq.com/p/detail.html?bid=393816&pid=4125412-1506689216
http://buluo.qq.com/p/detail.html?bid=393816&pid=4125412-1506689219
http://buluo.qq.com/p/detail.html?bid=393816&pid=4125412-1506689221
http://buluo.qq.com/p/detail.html?bid=393816&pid=4125412-1506689223
http://buluo.qq.com/p/detail.html?bid=393816&pid=4125412-1506689226
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506689226
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506689229
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506689231
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506689233
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506689236
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506689238
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506689241
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506689243
http://buluo.qq.com/p/detail.html?bid=393816&pid=5124680-1506689245
http://buluo.qq.com/p/detail.html?bid=393816&pid=8480627-1506681839
http://buluo.qq.com/p/detail.html?bid=393816&pid=8480627-1506681841
http://buluo.qq.com/p/detail.html?bid=393816&pid=8480627-1506681844
http://buluo.qq.com/p/detail.html?bid=393816&pid=8480627-1506681846
http://buluo.qq.com/p/detail.html?bid=393816&pid=8480627-1506681849
http://buluo.qq.com/p/detail.html?bid=393816&pid=8480627-1506681851
http://buluo.qq.com/p/detail.html?bid=393816&pid=8480627-1506681854
http://buluo.qq.com/p/detail.html?bid=393816&pid=8480627-1506681856
http://buluo.qq.com/p/detail.html?bid=393816&pid=8480627-1506681858
http://buluo.qq.com/p/detail.html?bid=393816&pid=8480627-1506681861
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506689247
http://buluo.qq.com/p/detail.html?bid=393816&pid=7076679-1506689250
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506681813
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506681815
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506681818
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506681820
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506681822
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506681825
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506681827
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506681830
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506681832
http://buluo.qq.com/p/detail.html?bid=393816&pid=9699758-1506681834
http://buluo.qq.com/p/detail.html?bid=393816&pid=2848862-1506681821
http://buluo.qq.com/p/detail.html?bid=393816&pid=2848862-1506681823
http://buluo.qq.com/p/detail.html?bid=393816&pid=2848862-1506681826
http://buluo.qq.com/p/detail.html?bid=393816&pid=2848862-1506681828
http://buluo.qq.com/p/detail.html?bid=393816&pid=2848862-1506681831
http://buluo.qq.com/p/detail.html?bid=393816&pid=2848862-1506681833
http://buluo.qq.com/p/detail.html?bid=393816&pid=2848862-1506681836
http://buluo.qq.com/p/detail.html?bid=393816&pid=2848862-1506681838
http://buluo.qq.com/p/detail.html?bid=393816&pid=2848862-1506681840
http://buluo.qq.com/p/detail.html?bid=393816&pid=2848862-1506681843
http://buluo.qq.com/p/detail.html?bid=393816&pid=4286494-1506689220
http://buluo.qq.com/p/detail.html?bid=393816&pid=4286494-1506689223
http://buluo.qq.com/p/detail.html?bid=393816&pid=4286494-1506689225
http://buluo.qq.com/p/detail.html?bid=393816&pid=4286494-1506689228
http://buluo.qq.com/p/detail.html?bid=393816&pid=4286494-1506689230
http://buluo.qq.com/p/detail.html?bid=393816&pid=4286494-1506689233
http://buluo.qq.com/p/detail.html?bid=393816&pid=4286494-1506689235
http://buluo.qq.com/p/detail.html?bid=393816&pid=4286494-1506689237
http://buluo.qq.com/p/detail.html?bid=393816&pid=4286494-1506689240
http://buluo.qq.com/p/detail.html?bid=393816&pid=4286494-1506689242
http://buluo.qq.com/p/detail.html?bid=393816&pid=1181807-1506685516

时间: 2024-10-09 20:28:29

jquery.i18n.properties前端国际化解决方案“填坑日记”的相关文章

前端系列——jquery前端国际化解决方案“填坑日记”

前言:最近,新的平台还没有开发完成,原来的老项目又提出了新的需求:系统国际化.如果是前后端完全分离的开发模式,要做国际化,真的太简单了,有现成的解决方案,基于Node构建的时下热门的任何一种技术选型都有成熟的方案,比如: vue + vue-i18n angular + angular-translate react + react-intl 但现在的情况是老的项目并没有使用这类架构.说起国际化,博主几年前就做过,在MVC里面实现国际化有通用的解决方案,主要就是通过资源文件的方式定义多语言.最初

Web前端国际化之jQuery.i18n.properties

Web前端国际化之jQuery.i18n.properties jQuery.i18n.properties介绍 国际化是如今Web应用程序开发过程中的重要一环,jQuery.i18n.properties是一款轻量级的jQuery国际化插件,能在不正确后端做不论什么更改的条件下,轻松简易的实现Web前端的国际化. 与其它国际化工具相比,jQuery.i18n.properties插件具有简单.易用.高内聚低耦合的特点. 国际化英文单词为:internationalization.又称i18n,

使用 jQuery.i18n.properties 实现Web 前端的国际化

国际化是现在 Web 应用程序开发中的重要一环.jQuery.i18n.properties 是一款轻量级的 jQuery 国际化插件,能在不对后端做任何更改的情况下,实现 Web 前端的国际化.与其他国际化工具相比, jQuery.i18n.properties 插件具有简单.易用.松耦合的特点.本文通过实际的例子,介绍如何通过 jQuery.i18n.properties 插件来实现 Web 前端的国际化.代码下载 jQuery.i18n.properties 简介 在介绍 jQuery.i

jQuery之前端国际化jQuery.i18n.properties

jQuery之前端国际化jQuery.i18n.properties jQuery.i18n.properties是一款轻量级的jQuery国际化插件,能实现Web前端的国际化. 国际化英文单词为:Internationalization,又称i18n,“i”为单词的第一个字母,“18”为“i”和“n”之间单词的个数,而“n”代表这个单词的最后一个字母.jQuery.i18n.properties采用.properties文件对JavaScript进行国际化.jQuery.i18n.proper

jQuery之前端国际化jQuery.i18n.properties[转]

http://www.ibm.com/developerworks/cn/web/1305_hezj_jqueryi18n/ jQuery.i18n.properties是一款轻量级的jQuery国际化插件,能实现Web前端的国际化. 国际化英文单词为:Internationalization,又称i18n,“i”为单词的第一个字母,“18”为“i”和“n”之间单词的个数,而“n”代表这个单词的最后一个字母.jQuery.i18n.properties采用.properties文件对JavaSc

使用 jQuery.i18n.properties 实现 Web 前端的国际化

jQuery.i18n.properties 简介 在介绍 jQuery.i18n.properties 之前,我们先来看一下什么是国际化.国际化英文单词为:Internationalization,又称 i18n,"i"为单词的第一个字母,"18"为"i"和"n"之间单词的个数,而"n"代表这个单词的最后一个字母.在计算机领域,国际化是指设计能够适应各种区域和语言环境的软件的过程. jQuery.i18n

jQuery.i18n.properties实现前端国际化

jQuery.i18n.properties的下载地址:jquery.i18n.properties-1.0.9.js:下载地址:http://download.csdn.net/detail/snails_zx/9224023jquery.i18n.properties-min-1.0.9.js:下载地址:http://download.csdn.net/detail/snails_zx/9224023 新建2个文件strings.propertiesstrings_zh.properties

基于jQuery.i18n.properties实现前端网站语言多版本

我是参考播客做了个demo:http://blog.csdn.net/aixiaoyang168/article/details/49336709 jQuery.i18n.properties采用.properties文件对JavaScript进行国际化.jQuery.i18n.properties插件首先加载默认的资源文件(strings.properties),然后加载针对特定语言环境的资源文件(strings_zh.properties),这就保证了在未提供某种语言的翻译时,默认值始终有效

使用jquery.i18n.properties.js实现js国际化

前两天接到一个任务,把之前的做过的一个系统实现国际化,之前的系统用的是Spring框架,国际化还是比较简单的.但是有一些提示是写在js文件里面的,搜了一些,发现一个js国际化的框架jquery.i18n.properties.js,用了一些还是比较方便的. 首先引入js文件,这个框架是依赖jquery的,所以jquery也要先引入,由于项目用了requireJs,所以在main文件里引入一下就可以了 require.config({     baseUrl: contextPath + "/js