Internationalization and localization tools

Locale-Sensitive Java Method


public static DateTimeFormatter ofPattern(String pattern)

public static DateTimeFormatter ofPattern(String pattern, Locale locale)

Internationalization (I18n) Method Overview

ofPattern creates a formatter using the specified pattern. If the locale is not passed in, it will use the default locale for your machine.

For more information on ofPattern, click here.

I18n Issues

Make sure you pass in the locale when calling ofPattern. If not, The formatter returned will use the default locale for your machine, which may not be correct. Alternatively, you can call withLocale(Locale) on the DateTimeFormatter instance to specifically set the locale.

Locale-Sensitive Java Methods


Lingoport internationalization and localization services and software