sveltia / sveltia-cms

Alternative to Netlify/Decap CMS. Fast, lightweight, Git-based headless CMS. Modern UX, first-class i18n support, open source & free. Made with Svelte.
MIT License
863 stars 43 forks source link

Feature Request: ValuePrefix/-Suffix for Widget `string` #110

Closed samtrion closed 6 months ago

samtrion commented 6 months ago

I would like to strongly structure certain areas of my website and assign the translationKey uniformly. e.g. the translationKey of my blog posts should be pre-assigned with post-. This value prefix should not be editable.

Unfortunately, I got this idea from the existing prefix / suffix implementation, but there is a different functionality here.

kyoshino commented 6 months ago

Well yes, I’ve implemented https://github.com/decaporg/decap-cms/pull/6836 a few weeks ago, but I think prefix and suffix for the UI visibility purpose are ill-named. Another PR https://github.com/decaporg/decap-cms/pull/6675 I have also implemented uses prefix in the right way.

I think no one uses it in Sveltia CMS yet; I could rename the current prefix/suffix properties to something else, say before_input/after_input, and implement this as prefix/suffix.

samtrion commented 6 months ago

I think no one uses it in Sveltia CMS yet; I could rename the current prefix/suffix properties to something else, say before_input/after_input, and implement this as prefix/suffix.

Sounds promising.