feat: translate backend
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 7m23s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 7m23s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package fr.titionfire.ffsaf.utils;
|
||||
|
||||
import fr.titionfire.ffsaf.domain.service.TradService;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
|
||||
@RegisterForReflection
|
||||
@@ -14,6 +15,14 @@ public enum GradeArbitrage {
|
||||
this.str = name;
|
||||
}
|
||||
|
||||
public String getString(TradService trad) {
|
||||
return switch (this) {
|
||||
case NA -> trad.translate("GradeArbitrage.NA");
|
||||
case ASSESSEUR -> trad.translate("GradeArbitrage.ASSESSEUR");
|
||||
case ARBITRE -> trad.translate("GradeArbitrage.ARBITRE");
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return str;
|
||||
|
||||
Reference in New Issue
Block a user