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
|
||||
@@ -27,8 +28,17 @@ public enum Genre {
|
||||
}
|
||||
}
|
||||
|
||||
public String getString(TradService trad) {
|
||||
return switch (this) {
|
||||
case H -> trad.translate("Genre.Homme");
|
||||
case F -> trad.translate("Genre.Femme");
|
||||
case NA -> trad.translate("Genre.NA");
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return str;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user