-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(i18n): camelCase to kebab-case for resource ids #4994
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Full Reportsanity
sanity/desk
@sanity/diff
@sanity/block-tools
@sanity/portable-text-editor
@sanity/mutator
@sanity/cli
@sanity/schema/_internal
@sanity/util/paths
sanity/router
@sanity/util/legacyDateFormat
@sanity/schema
sanity/cli
@sanity/vision
@sanity/util/fs
sanity/_internal
@sanity/util/content
@sanity/types
|
Component Testing Report Updated Oct 16, 2023 7:32 PM (UTC)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spy a few more camelcased resource IDs (the locale bundle needs to be updated to match, and ideally also take a look at dev/test-studio/plugins/locale-no-nb/bundles/desk.ts
and see if you can align those as well)
packages/sanity/src/desk/documentActions/DiscardChangesAction.tsx
Outdated
Show resolved
Hide resolved
packages/sanity/src/desk/documentActions/DiscardChangesAction.tsx
Outdated
Show resolved
Hide resolved
@rexxars - Thanks for finding the ones I missed. I think I got those now. I look at all the remaining calls to |
Sorry for not catching those. I was under the impression that these would trigger a compile error if they didn't match valid resource ids, but see now that that only works if you define them as a record of resource keys at usage site. Would be nice if we could find an easy way of enforcing that. Not trying to dodge blame, but this almost feels like a too easy mistake to do 😅 (and something that should be possible to catch statically?) |
I completely agree with you. There should be some way for this to trigger an error somewhere. |
854a7e4
to
6f07ab0
Compare
Description
Fixes some resource ids that were changed from camelCase to kebab-case but usages were not changed accordingly.