BrightSide Workbench Full Report + Source Code
org.turro.i18n.I18nContext Class Reference

Static Public Member Functions

static Path getI18nFolder ()
 
static List< Locale > getSiteLocales ()
 

Static Public Attributes

static final String[] BUNDLES
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file I18nContext.java.

Member Function Documentation

◆ getI18nFolder()

static Path org.turro.i18n.I18nContext.getI18nFolder ( )
static

Definition at line 42 of file I18nContext.java.

42  {
43  return Path.of(ElephantContext.getRealPath("/WEB-INF/elephant/i18n"));
44  }
Here is the call graph for this function:

◆ getSiteLocales()

static List<Locale> org.turro.i18n.I18nContext.getSiteLocales ( )
static

Definition at line 46 of file I18nContext.java.

46  {
47  I18nLocaleList locales = new I18nLocaleList();
48  Strings.csvToList(ElephantContext.getSiteLocales())
49  .forEach(lang -> locales.add(I18nLocales.createLocale(lang)));
50  return locales;
51  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ BUNDLES

final String [] org.turro.i18n.I18nContext.BUNDLES
static
Initial value:
= {
"lang",
"elephant",
"documentation",
"label-site"
}

Definition at line 35 of file I18nContext.java.


The documentation for this class was generated from the following file: