Files
SweetHome/app/enums/OwnerType.js
Rahaf dab5b62fb7
All checks were successful
Build frontend / build (push) Successful in 1m40s
Added translation to all site with edit style
2026-07-01 15:43:58 +03:00

23 lines
567 B
JavaScript

/**
* OwnerType Enum
* Backend values for owner sub-types
* Used in: Owner registration (Owner/Add)
*/
const OwnerType = Object.freeze({
PERSON: 0,
REAL_ESTATE_AGENCY: 1,
});
// Map value → Arabic label
const OwnerTypeLabels = Object.freeze({
[OwnerType.PERSON]: 'شخص',
[OwnerType.REAL_ESTATE_AGENCY]: 'وكالة عقارية',
});
const OwnerTypeTranslationKeys = Object.freeze({
[OwnerType.PERSON]: 'ownerType.person',
[OwnerType.REAL_ESTATE_AGENCY]: 'ownerType.agency',
});
export { OwnerType, OwnerTypeLabels, OwnerTypeTranslationKeys };