Follow

AngularJS

Translate your AngularJS web app!

1- Open your app's code: Using an editor of your choice, open your app's code for editing

2- Get the Translate code: Open up a new browser window and, if you haven't already, sign up for an account at Translate.com (or just log in!). Then click 'Website Localizer' on the left, followed by 'Add Website' to get started: 

 

          add-website.png

 

Add your domain name, select your site source language as well as all of the languages you want to translate into and click next:

 

                              select_languages.png

 

Copy the code snippet, which your page will need for the translation (yours will have an actual key rather than just "my-key"):

 

3- Insert the Website Translator code into your app: Simply paste the code snippet from the last step between your apps head tags:

 

 

4- Ensure that the widget appears in your app: The Website Translator widget should appear in the bottom right corner of your app. Click to see language options! (Allow around an hour for translations to appear.):

                             

Comments