roots / palette-webpack-plugin

Generate a JSON file containing your color palette from existing Sass maps and/or Tailwind.
MIT License
46 stars 7 forks source link

Label translation/independent definition #7

Open strarsis opened 4 years ago

strarsis commented 4 years ago

Summary

Currently color labels can't be translated using the WordPress i18n functions (like __). Also it may make sense to be able to define a different label/slug.

Motivation

Multilingual backend language should support translation of Gutenberg colors. The slug stays the same, but the labels are different.

Log1x commented 4 years ago

This will require making a php export mode.

strarsis commented 3 years ago

Revisting this issue: Such a feature would be awesome as it completely avoids code/style deduplication.