marhali / easy-i18n

This is a IntelliJ IDE based plugin for internationalization. Supports the most common translation file types.
MIT License
79 stars 25 forks source link

Automated Key Naming Convention Suggestion for Localize-It Action #398

Closed JPilson closed 4 months ago

JPilson commented 5 months ago

Description:

Issue Overview:

Currently, when utilising the Localize-It Action, it is required to manually adjust the key naming to align with a specific standard (e.g., PascalCase or snake_case). This manual adjustment introduces unnecessary friction and potential for inconsistencies in the naming convention across different users and projects.

Enhancement Proposal:

To streamline the user experience and ensure consistency in key naming, I propose implementing an automated key naming convention suggestion feature within the string extraction process.

Proposed Functionality:

  1. Key Naming Convention Identification: Based on user preferences or project settings, the system should identify the preferred key naming convention (e.g., PascalCase, snake_case).
  2. Automated Key Generation: Utilising the identified naming convention, the system should create an appropriate key for the extracted string.

Benefits:

  1. Improved Efficiency: Eliminates the need for manual key naming adjustments, saving users time and effort.
  2. Consistency: Ensures consistency in key naming conventions across projects and users, enhancing code readability and maintainability.
  3. User Flexibility: Users can still manually adjust suggested keys if needed, providing flexibility while promoting standardisation.
  4. Enhanced User Experience: Streamlines the string extraction process, enhancing overall user satisfaction with the feature.