@Test void getLanguageCode() { assertEquals("nl", I18nUtils.getLanguageCode("test-nl")); assertEquals("xxx", I18nUtils.getLanguageCode("test-xxx")); assertNull(I18nUtils.getLanguageCode("test")); }
public static String getLanguageCode(String name) { if (!isI18n(name)) return null; return name.substring(name.indexOf('-') + 1, name.length()); }
I18nUtils { public static String getLanguageCode(String name) { if (!isI18n(name)) return null; return name.substring(name.indexOf('-') + 1, name.length()); } }
I18nUtils { public static String getLanguageCode(String name) { if (!isI18n(name)) return null; return name.substring(name.indexOf('-') + 1, name.length()); } private  I18nUtils(); }
I18nUtils { public static String getLanguageCode(String name) { if (!isI18n(name)) return null; return name.substring(name.indexOf('-') + 1, name.length()); } private  I18nUtils(); static boolean isI18n(String name); static String getLanguageCode(String name); }
I18nUtils { public static String getLanguageCode(String name) { if (!isI18n(name)) return null; return name.substring(name.indexOf('-') + 1, name.length()); } private  I18nUtils(); static boolean isI18n(String name); static String getLanguageCode(String name);  }