Part of Case converters
dot.case converter: namespaced keys and config paths
Paste a phrase, camelCase property, or snake_case column and copy the dotted token into your i18n files, YAML config, or event catalog.
How to use this converter
- Enter a label with spaces, underscores, hyphens, or camelCase boundaries.
- Confirm segment order matches your namespace design (broad → specific).
- Copy into JSON config, i18n JSON, or analytics dictionaries.
When should you use dot.case?
Use dot.case when tools expect dotted keys: many i18n libraries, nested settings objects, and analytics taxonomies. URLs use kebab-case; Python uses snake_case; JavaScript properties often use camelCase—dot.case is for hierarchical labels, not public paths.
Translation and locale files
Namespaced keys like `errors.form.email.invalid` keep collisions out of flat dictionaries. When product copy arrives as Title Case labels, convert to dot.case before merging into `en.json` or `fr.json`.
Configuration and feature flags
Remote config services sometimes expose dotted paths that mirror object shape. Document whether `app.theme.dark` is a single key string or a nested JSON path in your SDK—dot.case here produces the key, not the nesting itself.
Common mistakes
Using dot.case in URL slugs—browsers and SEO expect hyphens, not periods.
Creating keys so deep that no one remembers the hierarchy—prefer shallow, meaningful segments.
Mixing `user.profileId` camelCase inside a dot.case file without a documented mapping.
Before and after examples
Order segments from general to specific when designing namespaces.
| Original | Converted | Notes |
|---|---|---|
| app config path | app.config.path | Plain phrase |
| userProfileEmail | user.profile.email | From camelCase |
| analytics_event_signup | analytics.event.signup | From snake_case |
| Feature Flag Dark Mode | feature.flag.dark.mode | From Title Case |