In many teams’ existing developer workflows, developers work within their own set of existing constraints, conventions, and automations. As teams have ramped up their usage of Ditto components and developer integrations, we want to make sure that Ditto integrates as seamlessly into developer workflows as possible.
For a lot of developers that manage their product’s strings, it’s their responsibility to name and maintain the keys or IDs of their strings when decoupled into a string file format, whether it’s a JSON, Android XML, or iOS Strings. For a lot of teams, prior to using Ditto, this ID is likely manually named by an engineer, whether the ID is a random set of characters, a variable name, or a version of the string itself.
In Ditto, engineers don’t have to worry at all about manually naming strings themselves — Ditto takes care of generating and managing all IDs. Today, we’re excited to introduce the ability to configure exactly how those developer IDs get auto-generated in your workspace. As teams scale up their Ditto coverage and integrate Ditto to handle all of the text in their product from design to development, we want to make sure that how IDs get generated and maintained in Ditto is a robust and configurable process.
From your developer integrations page, you'll now be able to configure the rules around how developer IDs get generated. On this page, it’ll display the current rules your workspace has in place.
These configurations allow you to customize the rules around how developer IDs get generated for both the component library and text items in projects.
When you click “Edit” for the Component ID rules, you’ll be able to configure rules for how developer IDs get generated for components. This includes the ability to specify:
The modal also allows for the rules to be tested on a sample component name, as well as the option to regenerate all existing IDs based on updated rules.
If someone in your workspace makes edits to the workspace ID configurations, the activity itself will display in your component library.
These settings allow you to configure the generation of text items in projects not currently attached to components. This includes the ability to specify:
To learn more about managing IDs in Ditto, check out this help guide.
With these new configurations, we hope it saves teams’ time, especially as they rapidly add to their component libraries. We hope it reduces overhead by allowing teams to:
We’re excited for you all to give it a try! If you have any additional configurations you’d like for your teams developer settings, please let us know.
Edit (3/7/2023): This post is updated to now include information about rules for developer IDs for text items in projects, which we have just released! 🎉