Files
SweetHome/app/enums/RentType.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

22 lines
451 B
JavaScript

/**
* RentType Enum
* Rental period type
* Sent as `rentType` field in API
*/
const RentType = Object.freeze({
MONTHLY: 0,
DAILY: 1,
});
const RentTypeLabels = Object.freeze({
[RentType.MONTHLY]: 'شهري',
[RentType.DAILY]: 'يومي',
});
const RentTypeTranslationKeys = Object.freeze({
[RentType.MONTHLY]: 'rentType.monthly',
[RentType.DAILY]: 'rentType.daily',
});
export { RentType, RentTypeLabels, RentTypeTranslationKeys };