develop Service portal in other language

NilimaVidhate
Tera Contributor

How we can develop service portal in other language(Japanese) rather than just only in english. What are the steps or configuration we need to do? Do we need to do any special configuration or scripting or we can achieve it just installing plugins?

1 ACCEPTED SOLUTION

Viraj Hudlikar
Giga Sage

Hello @NilimaVidhate 

 

Activate the Japanese Language Plugin.

VirajHudlikar_0-1740282568619.png

 

Refer this thread which will be helpful to you to proceed further.

In Platform Language Support Guide

Solved: how to translate portal - ServiceNow Community

Localization in Service Portal – ServicePortal.io

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

5 REPLIES 5

Murtaza Saify
Tera Contributor

1. Install Required Plugins

  1. Multi-Language Support Plugin:

    • Install the Multi-Language Support plugin (com.glide.i18n).

    • Navigate to System Definition > Plugins and search for the plugin.

  2. Language Packs:

    • Install the Japanese Language Pack plugin (com.glide.i18n.ja).

    • This plugin provides translations for OOB (out-of-the-box) content.


2. Enable Multi-Language Support

  1. Activate Languages:

    • Go to System Definition > Languages.

    • Enable Japanese (or any other language) by checking the Active box.

  2. Set Default Language:

    • In the same Languages table, set the Default Language (e.g., English) and Supported Languages (e.g., Japanese).


3. Translate System Messages

  1. System Messages:

    • Navigate to System Definition > Messages.

    • Search for messages and add translations for Japanese.

    • Example: Translate Submit to 送信.

  2. Import Translations:

    • Use the Import Set feature to bulk-upload translations if you have a large number of messages.


4. Translate Service Portal Content

  1. Widgets:

    • Open each widget in the Service Portal and translate its labels, placeholders, and messages.

    • Example: Edit the HTML template and replace English text with Japanese:

      html
      Copy
      <h1>Welcome</h1> <!-- English -->
      <h1>ようこそ</h1> <!-- Japanese -->
       
      Run HTML
  2. Page Titles and Descriptions:

    • Navigate to Service Portal > Pages.

    • Edit the page title and description in Japanese.

  3. Dynamic Content:

    • Use the i18n (internationalization) framework to translate dynamic content.

    • Example in a Client Script:

      javascript
      Copy
      gs.getMessage('Welcome'); // Returns "Welcome" in English or "ようこそ" in Japanese

5. Configure Language Preferences

  1. User Language Preferences:

    • Users can set their preferred language in their profile.

    • Navigate to System Security > Users > [User Record] > Preferences.

    • Set the Language field to Japanese.

  2. Language Selector Widget:

    • Add the Language Selector widget to your Service Portal.

    • This allows users to switch between languages dynamically.


6. Test the Service Portal

  1. Switch Language:

    • Use the Language Selector widget or change your user preference to Japanese.

    • Verify that all text, labels, and messages are displayed in Japanese.

  2. Check for Missing Translations:

    • If some content is still in English, add the missing translations in the Messages table or widget templates.


7. Advanced Customization

  1. Custom Scripts:

    • If you have custom scripts, use gs.getMessage() to ensure text is translated.

    • Example:

      javascript
      Copy
      var welcomeMessage = gs.getMessage('Welcome'); // Returns translated text
  2. Language-Specific Styles:

    • Use CSS to adjust styles for Japanese text (e.g., font-family, line-height).

    • Example:

      css
      Copy
      body[lang="ja"] {
        font-family: "MS Gothic", sans-serif;
      }
  3. SEO and Metadata:

    • Translate metadata (e.g., page titles, descriptions) for better SEO in Japanese.


8. Automate Translations (Optional)

If you have a large amount of content, consider using Machine Translation or Third-Party Translation Services:

  1. Machine Translation:

    • Use the Translation Hub plugin (com.glide.i18n.translation_hub) to automate translations.

    • Configure the plugin to use a translation API (e.g., Google Translate).

  2. Third-Party Services:

    • Integrate with external translation services via REST APIs.