Fix names still in french

This commit is contained in:
pikiou
2021-12-08 11:09:33 +01:00
parent c64bf376f8
commit 6bd3a9595f
9 changed files with 52 additions and 48 deletions

View File

@@ -1,6 +1,6 @@
import getServiceAccessors from "./accessors"
export class PreMember {
export class PreVolunteer {
id = 0
firstname = ""
@@ -16,7 +16,7 @@ export class PreMember {
comment = ""
}
export const translationPreMember: { [k in keyof PreMember]: string } = {
export const translationPreVolunteer: { [k in keyof PreVolunteer]: string } = {
id: "id",
firstname: "prenom",
lastname: "nom",
@@ -26,16 +26,16 @@ export const translationPreMember: { [k in keyof PreMember]: string } = {
comment: "commentaire",
}
const elementName = "PreMember"
const elementName = "PreVolunteer"
export type PreMemberWithoutId = Omit<PreMember, "id">
export type PreVolunteerWithoutId = Omit<PreVolunteer, "id">
const { listGet, get, set, add } = getServiceAccessors<PreMemberWithoutId, PreMember>(
const { listGet, get, set, add } = getServiceAccessors<PreVolunteerWithoutId, PreVolunteer>(
elementName,
translationPreMember
translationPreVolunteer
)
export const preMemberListGet = listGet()
export const preMemberGet = get()
export const preMemberAdd = add()
export const preMemberSet = set()
export const preVolunteerListGet = listGet()
export const preVolunteerGet = get()
export const preVolunteerAdd = add()
export const preVolunteerSet = set()

View File

@@ -28,7 +28,7 @@ export class Volunteer {
password = ""
}
export const translationMember: { [k in keyof Volunteer]: string } = {
export const translationVolunteer: { [k in keyof Volunteer]: string } = {
id: "id",
lastname: "nom",
firstname: "prenom",
@@ -50,7 +50,7 @@ export const emailRegexp =
/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i
export const passwordMinLength = 4
export interface MemberLogin {
export interface VolunteerLogin {
volunteer?: {
firstname: string
}
@@ -62,7 +62,7 @@ export type VolunteerWithoutId = Omit<Volunteer, "id">
const { listGet, get, set, add } = getServiceAccessors<VolunteerWithoutId, Volunteer>(
elementName,
translationMember
translationVolunteer
)
export const volunteerListGet = listGet()