简体   繁体   English

我建立了一个多页面网站,必须将其变成一个双语网站,将所有内容从英语翻译成法语,我该怎么做 go?

[英]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 个文件?

The easiest way to do this is by using a 3rd party.最简单的方法是使用第三方。 You can use something that is powered by google translate.您可以使用由谷歌翻译提供支持的内容。 w3schools shows how to use it. w3schools展示了如何使用它。

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.

相关问题 如何使用 jsPDF 和 HTML2Canvas 从网站获取多页 pdf? - How do I get a multi-page pdf from a website using jsPDF and HTML2Canvas? 在Sinatra中,我如何制作多页弹出式表单,并在填写时保留在同一页面上? - In Sinatra, how do I make a multi-page pop-under form which stays on the same page as you fill it out? 如何使用Meteor创建多页面应用程序? - How do I create multi-page applications with Meteor? 我必须从 Vuejs 中的多个输入中创建一个字符串数组。 我怎么能 go 关于这个? - I have to make an array of strings from multiple inputs in Vuejs. How can I go about this? Vue js SSR:我可以有一个多页单页应用程序吗? - Vue js SSR: Can I have a multi-page single-page application? 多页表单:如何根据请求无限期地重复一页? HTML,CSS,JS - Multi-page form: how do I repeat one page indefinitely by request? HTML, CSS, JS 我是否必须加载 60 fonts 才能在网站上支持 60 种语言? - Do I have to load 60 fonts to support 60 language in website? 如何将Backbone.js用于多页Web应用程序? - How do I use Backbone.js for a multi-page web app? 我有一个简单的博客网站,如果我添加帖子或编辑帖子,并且 go 到主页 state 存储帖子的位置没有保存 - I have a simple blog website, if i add posts or edit posts , and go to home page state in which posts are stored is not saved 如何实施拍卖网站的时间管理? - How do I go about implementing time management for auction website?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM