281 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
JPilson
08d8326523 feat: add key naming convention converter
New methods have been added to convert keys to either camel or snake case depending on a boolean flag. These methods are used to format the text that is input into the Add Dialog in 'LocalizeItAction' class. This improves the versatility of key handling within the project.
2024-04-16 20:33:05 +02:00
marhali
39ed8f4d42 remove js usage on non-js-compliant platforms
Resolves #344
2024-04-13 21:22:25 +02:00
marhali
cc5dbb74d2 fix tests 2024-04-10 00:35:16 +02:00
marhali
71e1106423 small refactoring 2024-04-10 00:25:31 +02:00
Marcel
8ddc7ff6ac
Merge pull request #345 from JPilson/feature/LocalizeSelectedString
feat(Localize Selected): add LocalizeItAction for localizing selected…
2024-04-10 00:11:22 +02:00
marhali
20c9d65df3 Merge remote-tracking branch 'refs/remotes/origin/main' into feature/update-2024.1
# Conflicts:
#	CHANGELOG.md
2024-04-09 23:46:41 +02:00
marhali
6f37512673 define direct dependency on apache commons
Resolves #383, Resolves #375, Resolves #367
2024-04-09 23:39:20 +02:00
JPilson
697059bcdd Merge remote-tracking branch 'Meine/feature/LocalizeSelectedString' into feature/LocalizeSelectedString
# Conflicts:
#	src/main/java/de/marhali/easyi18n/action/LocalizeItAction.java
2023-12-16 18:05:25 +01: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
3dd4117d4c treat empty translation values as incomplete
Resolves #347
2023-12-11 19:49:32 +01:00
marhali
775ae30061 remove saveAll action on reload
Application state should be consistent even without save action
2023-12-11 18:33:17 +01:00
JPilson
7038e42055 feat(Localize Selected): add LocalizeItAction for localizing selected text
This commit introduces a new action, `LocalizeItAction`, into the easyi18n toolset, which allows users to automatically apply localization to a selected string in the text editor. The action is now accessible from the editor's context menu. This provides a more efficient way to localize selected strings compared to manually adding them.
2023-12-09 15:01:47 +01:00
JPilson
352dc7c47c feat(Add Selection): add LocalizeItAction for localizing selected text
This commit introduces a new action, `LocalizeItAction`, into the easyi18n toolset, which allows users to automatically apply localization to a selected string in the text editor. The action is now accessible from the editor's context menu. This provides a more efficient way to localize selected strings compared to manually adding them.
2023-12-09 14:43:40 +01:00
marhali
70f087b3df also fix deprecated apis in docs 2023-12-08 22:24:55 +01:00
marhali
860fe08ea1 replace deprecated apache commons utils 2023-12-08 21:55:14 +01:00
marhali
2218210ee4 feat(ui): adjust tool window icon color to align with new ui reference 2023-09-02 12:39:17 +02:00
marhali
d7d2880c44 replace yaml mapping with own implementation to fix pluginVerifierTask 2023-02-19 15:23:48 +01:00
marhali
d5295fa111 try getParent() instead of this 2023-02-19 13:25:08 +01:00
marhali
9816066046 make public 2023-02-19 13:06:20 +01:00
marhali
6c06b41348 remove protected scope 2023-02-18 20:22:12 +01:00
marhali
d329db56df fix AWT events are not allowed inside write action 2023-02-18 17:40:18 +01:00
marhali
d9781566c0 replace deprecated API methods 2022-12-17 15:46:24 +01:00
marhali
414d413434 restructure form actions
Resolves #199
2022-12-07 21:41:26 +01:00
marhali
e26ada8b20 add hint for path variable option 2022-12-07 19:32:16 +01:00
SIMULATAN
b7993ce4f8 Add support for path macros
fixes #189
2022-11-03 11:20:41 +01:00
marhali
853f36dd55 preserve file order for comparing 2022-10-28 22:31:58 +02:00
marhali
1a4df58447 fix test on Windows 2022-10-28 22:03:23 +02:00
marhali
2b4170ada0 fix line endings 2022-10-28 21:41:58 +02:00
marhali
d85db1fd48 only perform save all inside reload 2022-10-28 20:48:31 +02:00
marhali
55a0a3366b default to indent 2 2022-10-28 20:17:34 +02:00
marhali
059d1bcc25 correct e2e tests 2022-10-28 20:17:16 +02:00
marhali
c647489981 support regex file patterns
Resolves #191
2022-10-28 17:30:02 +02:00
marhali
00c1e49fb4 end-to-end tests 2022-10-28 16:51:20 +02:00
marhali
7793ad6a86 reset ont init 2022-10-28 16:50:42 +02:00
marhali
d626771f21 run on per-test basis 2022-10-28 15:59:25 +02:00
marhali
acb284ff88 fix properties parsing
Resolves #190
2022-10-28 15:44:20 +02:00
marhali
fd53e80e07 first e2e test with single dir .properties files 2022-10-28 15:39:23 +02:00
marhali
eeba513c92 base for e2e tests 2022-10-28 15:38:31 +02:00
marhali
150f40d395 improve exception handling on syntax errors
Resolves #167
Resolves #177
2022-10-14 17:36:01 +02:00
marhali
38f5bcb900 fix loosing settings on IDE restart
Resolves #186
Resolves #164
2022-10-14 16:02:20 +02:00
marhali
6858590235 rollback to deprecated function call 2022-09-03 17:18:53 +02:00
marhali
7fd6526405 remove warning about missing configuration during project init
Resolves #148
2022-09-03 16:40:05 +02:00
marhali
81fe2e7852 fix folding for html parts
Resolves #175
2022-09-03 16:23:24 +02:00
marhali
c448cfa106 remove deprecated function call 2022-09-03 15:42:34 +02:00
marhali
7126d13b6f change color to increase contrast in light themes
Resolves #157
2022-08-24 21:15:46 +02:00
marhali
61d5d63bf9 increase visibility for the docs provider 2022-08-24 20:48:55 +02:00
marhali
9c0aec3515 disable explicit vue folding rules 2022-08-24 20:47:34 +02:00