All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jspringbot.keyword.date.util.I18nHelper Maven / Gradle / Ivy

package org.jspringbot.keyword.date.util;

import java.util.Locale;

import org.springframework.context.i18n.LocaleContextHolder;

public class I18nHelper {
	
    public void setLocale(String localeID) {
        
        Locale locale = I18nUtil.getLocaleFromString(localeID);
        LocaleContextHolder.setLocale(locale);

    }

    public Locale getLocale() {
        return LocaleContextHolder.getLocale();
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy