# EngineeringRequestStatusEnum.java

    package cloud.wconnect.frontoffice.cons.engineeringrequest;

    import lombok.AllArgsConstructor;
    import lombok.Getter;

    import java.util.Arrays;
    import java.util.Optional;

    @Getter
    @AllArgsConstructor
    public enum EngineeringRequestStatusEnum {

        OPEN(0, "engineering-request.status.open"),

        IN_PROGRESS(2, "engineering-request.status.in-progress"),

        CLOSED(1, "engineering-request.status.closed");

        private final int code;

        private final String i18nCode;

        public static String getI18nCode(int code) {
            Optional<EngineeringRequestStatusEnum> optional = Arrays.stream(EngineeringRequestStatusEnum.values())
                    .filter(item -> item.getCode() == code).findFirst();
            return optional.isPresent() ? optional.get().getI18nCode() : "";
        }

    }