Show human readable & translatable availablity status

Created on 12 August 2024, 9 months ago
Updated 27 August 2024, 8 months ago

Problem/Motivation

Instead I think it should show the human readable label like in the form:
https://git.drupalcode.org/project/commerce_product_availability/-/blob/...

And it should be translatable:
{{ availability_status|t }}

I think we should pass the machine name and the label to the theme?
Should we have some kind of alterable function to return the possible statuses or is this YAGNI? ;)

I was thinking about a simple alter hook to return the key / value array to be used for the form and output... With the current array as defaults.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024