Skip to content

Type-safe Access and Autocomplete Support for Nested Locale String Paths #1586

Description

@xayanide

Describe the feature

Adding type definitions or a helper utility that allows developers to access locale strings with full TypeScript autocomplete support without interfering or breaking Crowdin workflows. This would let us access nested locale keys like 'DISCORD.INSUFFICIENT_PERMISSIONS.BOT.STAGE' with IDE suggestions rather than relying on string literals, also leverages TypeScript in the scope of locales, this scope doesn't have autocomplete at all

Priority

Low

List the benefits of adding such a feature

  • Type safety, less risk for typos when accessing locale strings
  • Autocomplete!!!

Is this feature request related to a problem?

N/A

Metadata

Metadata

Labels

affects:localeIssues and PRs: Affects locale in some waypriority:p3Issues and PRs: Low priorityreleased on @nextstatus:confirmedIssues and PRs: Confirmed bug, or enhancement is confirmed to be added

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions