[英]I have built a multi-page website and have to make it a dual language site which translates everything from english to french, how do I go about this?
I have built a multi-page website using html, css, bootstrap, jquery and javascript, i have been asked that it be possible for the user to translate it to french and english in reverse.我使用 html、css、bootstrap、jquery 和 javascript 建立了一个多页网站,有人问我是否可以让用户将其反向翻译成法语和英语。 I have never done this before and am unsure how to go about it.我以前从未这样做过,我不确定如何 go 了解它。 I am only building the frontend and the translations are being provided to me, do i need to make json files for each language?我只构建前端并向我提供翻译,我是否需要为每种语言制作 json 个文件?
You may check out https://airbnb.io/polyglot.js/.It is a tiny I18n helper library written in JavaScript,based off of Airbnb's experience adding I18n functionality to its Backbone.js and Node apps.您可以查看https://airbnb.io/polyglot.js/。这是一个用 JavaScript 编写的小型 I18n 帮助程序库,基于 Airbnb 在其 Backbone.js 和 Node 应用程序中添加 I18n 功能的经验。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.