class I18nTranslate {

    @Resource
    private HttpServletRequest request;

    @Resource
    private EruptProp eruptProp;

    public static String $translate(String key) {
        return EruptSpringUtil.getBean(I18nTranslate.class).translate(key);
    }

    public String translate(String key) {
        String lang = getLang();
        return I18nRunner.getI18nValue(lang == null ? eruptProp.getDefaultLocales() : lang, key);
    }

    public String getLang() {<FILL_FUNCTION_BODY>}

}

        try {
            return request.getHeader("lang");
        } catch (Exception ignored) {
            return null;
        }
    
<no_super_class>