×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Keshaboina Ramesh
Added: Apr 4, 2021 7:29 AM
Views: 3949
Tags: no tags
  1. private static Map<String, ResourceFormatter> formatters
  2.             = Map.of("en-GB", new ResourceFormatter(Locale.UK),
  3.                     "en-US", new ResourceFormatter(Locale.US),
  4.                     "en-FR", new ResourceFormatter(Locale.FRANCE),
  5.                     "en-RU", new ResourceFormatter(new Locale("ru", "RU")),
  6.                     "en-CN", new ResourceFormatter(Locale.CHINA));