JavaScript Translation Snippet

Make your website multilingual with Weglot

JavaScript ロゴ

Developers, designers, and site-owners, this one’s for you: a simple, copy-paste JavaScript snippet that will transform your monolingual site into a multilingual one in less than 5 minutes.

Weglot is compatible with whatever web technology you’re using to develop your site. Connect Weglot to your website using our JavaScript integration and we’ll do all the heavy lifting for you. Our Translation API will detect all your website content and deliver it back to you in any language. No maintenance, no pain. Plus, we’re trusted by more than 50,000 website owners.

Weglotを使うメリット

Quick install: Ready in less than 5 minutes.


All content detected & translatable: text, images, even metadata.


Easily manage all your translations from a single interface.


No need to start from scratch: get a first round of automatic translations.


Invite team members or work with professional translators.


Weglot dancing character

ウェブサイトの翻訳を始めましょう。

1) Weglotでアカウントを作成する

このアカウントを使って、すべての翻訳を表示および管理します。 Weglotのアカウントをこちらから簡単作成しましょう。

javascript-translate

2) Select “Other” as your “Website Technology.”

javascript-select

3) Choose the “JavaScript Integration” option.

アカウント登録時に入力したメールアドレスに、確認メールが送信されます。

メールアドレスを認証した後、次のようなWeglot管理画面が表示されます。「Other possible integrations」と表示されているボックスまで、下にスクロールし、「Use Javascript integration」をクリックします。

choose-javascript

4) Add your new languages

You’ll then be prompted to enter the original language of your website + the new language(s) you want to translate and display your site into.

add-languages-javascript

「Next」をクリックします。

5) Copy and paste the code shown on your screen

This part is pretty easy. Copy the code that will appear on your screen (replacing “YOUR_API_KEY” with the one found in your Weglot setting).

HTML

Then paste it into the section of your HTML pages (if you’re using a CMS to build your website, this is usually located in the CMS settings, under a tab that will be titled “Custom Code” or something similar).

サイトをゼロから構築する場合は、すべてのウェブサイトのHTMLページで、タグの直前にJavaScript スニペットを貼り付けるだけです。

Your website is now translated!

You’ve now successfully translated your website using JavaScript. Go to your website and you’ll see a language switcher at the bottom right of your site (it might take a few minutes to appear). 

Weglot provides you with a first round of automatic translation, which you can then review and manually edit within your Weglot account dashboard under ‘Translations’. 

Weglotアカウントにログインし、翻訳に移動しましょう。全テキストの翻訳が表示され、編集を開始できます。

If you decide to install Weglot with this JavaScript integration, you’re all set for translating your site content, no matter what development stage you’re at. 

Once you’ve got your site live and are starting to think about SEO, you might want to have a look at our General Integration page—this is where you can learn how to make your website SEO-compatible and well-indexed on search engines in all your final languages.

さぁ、始めましょう。
たったの数分でウェブサイトを多言語化します
Cookies settings
We use cookies to collect and analyze information on site performance and usage, to provide social media features and to enhance and customize content and advertisements. Learn more with our Privacy policy
Necessary cookies

Some cookies are required to provide core functionality. The website won’t function properly without these cookies and they are enabled by default and cannot be disabled.

Non-necessary Cookie Settings

Any cookies that may not be particularly necessary for the website to function and is used specifically to remember preferences or to help us improve our website by collecting and reporting information on its usage.

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customize content and advertisements. Learn more with our Privacy policy