/** * PropertyTerm Enum * Usage terms/conditions for the property * Used in detailsJSON.terms array */ const PropertyTerm = Object.freeze({ NO_SMOKING: 'NoSmoking', NO_ANIMALS: 'NoAnimals', NO_PARTIES: 'NoParties', }); const PropertyTermLabels = Object.freeze({ [PropertyTerm.NO_SMOKING]: 'ممنوع التدخين', [PropertyTerm.NO_ANIMALS]: 'ممنوع الحيوانات', [PropertyTerm.NO_PARTIES]: 'ممنوع الحفلات', }); // All terms as array const PropertyTermsList = Object.freeze(Object.values(PropertyTerm)); const PropertyTermTranslationKeys = Object.freeze({ [PropertyTerm.NO_SMOKING]: 'propertyTerm.noSmoking', [PropertyTerm.NO_ANIMALS]: 'propertyTerm.noAnimals', [PropertyTerm.NO_PARTIES]: 'propertyTerm.noParties', }); export { PropertyTerm, PropertyTermLabels, PropertyTermsList, PropertyTermTranslationKeys };