Search in sources :

Example 1 with LocaleProvider

use of org.eclipse.smarthome.core.i18n.LocaleProvider in project smarthome by eclipse.

the class TranslationProviderOSGiTest method setup.

@Before
public void setup() {
    translationProvider = getService(TranslationProvider.class);
    LocaleProvider localeProvider = getService(LocaleProvider.class);
    Map<String, Object> localeCfg = new HashMap<>();
    localeCfg.put("language", "de");
    localeCfg.put("region", "DE");
    ((I18nProviderImpl) localeProvider).modified(localeCfg);
}
Also used : HashMap(java.util.HashMap) LocaleProvider(org.eclipse.smarthome.core.i18n.LocaleProvider) TranslationProvider(org.eclipse.smarthome.core.i18n.TranslationProvider) Before(org.junit.Before)

Aggregations

HashMap (java.util.HashMap)1 LocaleProvider (org.eclipse.smarthome.core.i18n.LocaleProvider)1 TranslationProvider (org.eclipse.smarthome.core.i18n.TranslationProvider)1 Before (org.junit.Before)1