Set the Japanese Imperial Calendar as the default for a region

About this task

PolicyCenter provides a way to set a default calendar for a region through the defaultCalendar attribute of the <GWLocale> element. Additionally, for the Japanese Imperial Calendar, you must also set enableJapaneseCalendar of the <GWLocale> element to true. These attributes determine whether or not to enable the Japanese calendar for this region.

Important: Guidewire uses the International Components for Unicode (ICU) open source library to format dates according to the Japanese Imperial calendar. The ICU library specifies formats according to the historical Imperial calendar. Contemporary changes to the calendar, such as the start of a new era, require an updated ICU library. If such an event occurs, contact Guidewire support for details on how to upgrade to a newer version of the ICU library.

Procedure

  1. In the Guidewire Studio Project window, navigate to configuration > config > Localizations and double click localization_ja_JP.xml to open it in the editor.
  2. Add the defaultCalendar attribute to the <GWLocale> element, with the value set to JapaneseImperial.
  3. Add the enableJapaneseCalendar attribute to the <GWLocale> element, with the value set to true.
    <GWLocale 
      code="ja_JP" 
      name="Japanese" 
      typecode="ja_JP" 
      defaultCalendar="JapaneseImperial"
      enableJapaneseCalendar="true">

Results

After setting these calendar attributes, if the user chooses this region in PolicyCenter, all dates are shown as Japanese Imperial Calendar dates.

What to do next

See also