I have been working on the localization project for Drupal as part of the Google Summer of Code 2024.
- Remove Unused JSON:API Resource Configurations and Adjust Dependencies
- Deleted obsolete JSON:API resource configuration files:
jsonapi_extras.jsonapi_resource_config.l10n_server_string.yml
jsonapi_extras.jsonapi_resource_config.l10n_server_translation.yml
jsonapi_extras.settings.yml
- Removed unnecessary dependency on
jsonapi_extras
module.
Integrated server-side submission logic
L10nClientContributorHelper.php:
- Integrated additional handling to better manage translation submissions, including improved error management using \Exception.
l10n_client_contributor.module:
- Removed redundant lines to streamline the l10n_client_contributor_save_translation function and enhance code clarity.
- TranslationForm.php:
- Added logic to send translations to the server with a response validation. This includes error handling that displays a message if the contribution fails, or a success message if it succeeds.
- Implemented a hidden button to trigger form rebuilding when a render cache is active, ensuring all strings are collected from the page.
- Improved comments and documentation for better code readability and maintenance.
azhardotcoder β changed the visibility of the branch 3395327-replace-xmlrpc-for to active.
azhardotcoder β changed the visibility of the branch 3395327-replace-xmlrpc-for to hidden.
azhardotcoder β changed the visibility of the branch 3.0.x to hidden.
azhardotcoder β changed the visibility of the branch l10n_server-3395508-3395508-contributor-endpoints to hidden.
azhardotcoder β changed the visibility of the branch revert-917a89be to hidden.
azhardotcoder β made their first commit to this issueβs fork.
azhardotcoder β made their first commit to this issueβs fork.
In the same dropdown, you can add a custom language heading. By doing this, you won't need extra space on the website, and users will have no trouble finding it.
Hey, I'm Azhar, and I'm really excited to be part of this project. Can't wait to get started and see where we can take it together!