@Singleton public class LangPropsService extends Object
| Constructor and Description |
|---|
LangPropsService() |
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key)
Gets a value from
the current locale specified language properties
file with the specified key. |
String |
get(String key,
Locale locale)
Gets a value with the specified key and locale.
|
Map<String,String> |
getAll(Locale locale)
Gets all language properties as a map by the specified locale.
|
public Map<String,String> getAll(Locale locale)
locale - the specified localepublic String get(String key)
the current locale specified language properties
file with the specified key.key - the specified keyCopyright © 2009–2019 B3log. All rights reserved.