531 Commits

Author SHA1 Message Date
marhali
f2ff2d3d06 add support for 2024.3 2024-11-23 21:22:18 +01:00
marhali
6d192cd72c update intellij platform 2024-11-23 21:22:05 +01:00
Marcel
4efe615ae8
Merge pull request #406 from marhali/changelog-update-v4.6.0
Changelog update - `v4.6.0`
2024-06-02 00:58:11 +02:00
GitHub Action
1e99c3c6bc Changelog update - v4.6.0 2024-05-31 18:57:08 +00:00
marhali
9478b1ea1c prepare minor release 2024-05-31 20:30:38 +02:00
Marcel
5428ae3d46
Merge pull request #399 from JPilson/feature/key_naming_convention
Feature/Automated Key Naming Convention Suggestion for Localize-It Action
2024-05-31 20:28:31 +02:00
Marcel
afe8a4fa09
Merge pull request #405 from marhali/changelog-update-v4.5.2
Changelog update - `v4.5.2`
2024-05-30 13:14:14 +02:00
GitHub Action
3a9a487cd6 Changelog update - v4.5.2 2024-05-30 11:12:13 +00:00
marhali
46575b31fd prepare patch release 2024-05-30 12:55:22 +02:00
marhali
9f5567fceb support all 242 builds 2024-05-30 12:47:33 +02:00
JPilson
45834046dd feat: Replace Camel case uppercase with Pascal case
The main modification is in `NamingConvention.java` replacing the enumeration `CAMEL_CASE_UPPERCASE` with `PASCAL_CASE`. This change can help to improve the readability of the code by reducing the verbosity of names and ensure convention consistency. Also, a new test file `NamingConventionTest.java` has been introduced to ensure correctness and stability of the code against these modifications.
2024-04-21 11:09:20 +02:00
JPilson
340ab134e5 feat: Move NamingConvention to presets package
Moved `NamingConvention` from the settings package to a new settings.presets package. This involved modifying various import statements across the application and updating methods that utilised this enum. Increased the `KeyCaseFormater` minimum and preferred width to 200 for better UI rendering.
2024-04-21 10:15:32 +02:00
JPilson
4c737e25fa refactor: streamline key naming convention conversion
Moved key naming convention conversion logic into NamingConvention enum. This simplifies the code in LocalizeItAction and makes the conversion function easily reusable. Also added support for uppercase snake and camel cases.
2024-04-20 19:28:16 +02:00
JPilson
027016921f feat: update naming convention functionality
Updated naming convention features by simplifying key case formatter construction and expanding the naming convention enum. Also performed a refactor to layout and formatting across various files for improved readability. Added new test cases to validate the update to naming convention.
2024-04-20 18:44:18 +02:00
JPilson
f933ea91eb feat: Add project-specific naming convention in LocalizeItAction
Refactored convertKeyToNamingCase method to include project-specific naming conventions. Now, it adapts to the naming convention specified in the project settings. This change enhances flexibility by catering to individual project preferences.
2024-04-18 21:03:15 +02:00
JPilson
b7b3563080 feat: Add case format to ProjectSettingsState and fromSelector method to NamingConvention
This commit adds a new attribute, `caseFormat`, to the `ProjectSettingsState` class. It also introduces a static method `fromSelector` in the `NamingConvention` class to transform a string into a NamingConvention enum. The transformation in `ProjectSettingsComponentState` has been updated  to use this new method.
2024-04-18 20:48:40 +02:00
JPilson
667b748614 feat: Add key naming convention selection for extracted translations
This update enables the user to specify a key naming convention (Camel Case or Snake Case) for extracted translations. This option is made available in the settings panel, and has been included in the project-specific configuration and state management for the project settings component.
2024-04-16 20:34:12 +02:00
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
Marcel
562de99470
Merge pull request #395 from marhali/changelog-update-v4.5.1
Changelog update - `v4.5.1`
2024-04-13 22:50:46 +02:00
GitHub Action
e5c10c3358 Changelog update - v4.5.1 2024-04-13 20:42:32 +00:00
Marcel
30fa22b256
Merge pull request #394 from marhali/fix/illegal-dependency-usage
Fix/illegal dependency usage
2024-04-13 22:22:50 +02:00
marhali
6b5ac27379 prepare patch release 2024-04-13 21:23:48 +02:00
marhali
39ed8f4d42 remove js usage on non-js-compliant platforms
Resolves #344
2024-04-13 21:22:25 +02:00
Marcel
4475823cdc
Merge pull request #389 from marhali/changelog-update-v4.5.0
Changelog update - `v4.5.0`
2024-04-10 10:11:28 +02:00
GitHub Action
9e1912b0bc Changelog update - v4.5.0 2024-04-10 07:53:58 +00:00
Marcel
474842672b
Merge pull request #388 from marhali/feature/localize-it
Feature/localize it
2024-04-10 09:18:34 +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
Marcel
a1065dde85
Merge pull request #386 from marhali/feature/update-2024.1
add support for 2024.1 and update dependencies
2024-04-10 00:03:56 +02:00
marhali
9d3af77efa prepare minor release 2024-04-09 23:48:07 +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
Marcel
ba10b078ea
Merge pull request #350 from marhali/incomplete-empty-translation-values
treat empty translation values as incomplete
2024-04-09 23:45:35 +02:00
marhali
6f37512673 define direct dependency on apache commons
Resolves #383, Resolves #375, Resolves #367
2024-04-09 23:39:20 +02:00
marhali
9b468a2101 add support for intellij platform version 2024.1 2024-04-09 23:30:44 +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
Marcel
5f51ddcd50
Merge pull request #349 from marhali/changelog-update-v4.4.4
Changelog update - `v4.4.4`
2023-12-11 19:44:28 +01:00
GitHub Action
46277a9a9d Changelog update - v4.4.4 2023-12-11 18:17:28 +00:00
marhali
866d60a75f Merge remote-tracking branch 'origin/main' 2023-12-11 19:06:48 +01:00
marhali
510f5d69b2 prepare patch release 2023-12-11 19:06:31 +01:00
Marcel
cfff6187de
Merge pull request #348 from marhali/hotfix/internal-api-usage
remove saveAll action on reload
2023-12-11 18:53:44 +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
Marcel
f4d3542e6a
Merge pull request #343 from marhali/changelog-update-v4.4.3
Changelog update - `v4.4.3`
2023-12-08 23:59:05 +01:00