14 Commits

Author SHA1 Message Date
JPilson
0c1710029f feat: Add naming convention setting for presets
Implemented a new setting, `getCaseFormat`, in the `ProjectSettings` interface, returning the naming convention used. Also extended corresponding implementations (`DefaultPreset`, `VueI18nPreset`, `ReactI18NextPreset`, `SettingsTestPreset`) to return `NamingConvention.CAMEL_CASE`. A new enum `NamingConvention` was created for this, with options `SNAKE_CASE` and `CAMEL_CASE`.
2024-04-16 20:33:57 +02:00
marhali
71e1106423 small refactoring 2024-04-10 00:25:31 +02:00
JPilson
5b420a7bcc Add flavorTemplate for i18n string replacement and refactor LocalizeItAction
The `flavorTemplate` has been introduced in `ProjectSettingsState` to allow developers to customize the i18n string replacement format. In addition, the `LocalizeItAction` class has been simplified by refactoring commented details into JavaDocs and adding methods to replace selected text and build replacement strings. A new utility class, `DocumentUtil`, checks the document type during string replacement.
2023-12-16 17:58:01 +01:00
JPilson
c56812c888 Implement selectable text replacement with i18n keys
A new feature is introduced to replace the selected text in editor with Internationalization (i18n) keys, improving the coding workflow for developers handling string localization. The i18n keys are generated based on the customized settings or default flavor template. Further, a function to retrieve the key field from the `TranslationDialog` is added and a new utility class `DocumentUtil` for checking document file types has been added.
2023-12-16 17:51:29 +01:00
JPilson
a709db810e Add i18n flavor template setting
A new setting, `flavorTemplate` is introduced to specify how strings are replaced with i18n representation. This includes code modifications for handling this new feature and also updates in the messages.properties file for the associated UI text. The feature is especially useful for customizing how localization strings are generated in different project setups.
2023-12-16 17:50:29 +01:00
marhali
eeba513c92 base for e2e tests 2022-10-28 15:38:31 +02:00
marhali
38f5bcb900 fix loosing settings on IDE restart
Resolves #186
Resolves #164
2022-10-14 16:02:20 +02:00
marhali
8dc66e1250 add new option to consider sub-dirs for folder parser strategy 2022-05-28 23:08:57 +02:00
marhali
433ce8e844 add option to force key folding 2022-04-21 22:17:16 +02:00
marhali
b89bae1dae provide presets 2022-04-11 22:16:45 +02:00
marhali
06f03ea1e1 move FolderStrategyType to right package 2022-04-11 19:27:36 +02:00
marhali
f63492ea7a optimize delimiter naming 2022-04-10 13:11:51 +02:00
marhali
289f168e88 introduce configuration presets 2022-04-09 13:00:43 +02:00
marhali
d7f34a35db rework plugin configuration 2022-04-09 12:39:40 +02:00