承接 pdchaudhary/lokalise-pimcore 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pdchaudhary/lokalise-pimcore

Composer 安装命令:

composer require pdchaudhary/lokalise-pimcore

包简介

Automatically translate and review your content via Lokalise.

README 文档

README

Automatically translate and review your content via Lokalise

DEMO VIDEO : https://www.youtube.com/watch?v=5gyPa9YW020

Overview

This extension will work as a bridge between Pimcore and Lokalise for the purpose of automating the whole translation workflow. Thus eliminating most of the manual steps in the task along with availing quality translation-review service from Lokalise.

Features

  • Translation & Review - Data Objects, Documents, and Shared Translation
  • Workflow management
  • Translation progress tracking
  • Works with Bulk Objects - Push and Pull for Translation
  • Auto push on publish event in Document and Object (New)
  • Individual Object Sync (New)

Requirements

  • Pimcore 11
composer require pdchaudhary/lokalise-pimcore:3.0
  • Pimcore 10
composer require pdchaudhary/lokalise-pimcore:2.x
  • Pimcore 5.8 or 6.x
composer require pdchaudhary/lokalise-pimcore:1.0.7

Installation

  1. Open Pimcore admin panel
  2. Go to Setting and click on Bundles
  3. Click on plus icon(+) to enable the plugin
  4. Then add “lokalise_api_key” in website setting from (Setting -> Website settings)
  5. Generate the api key from Lokalise with read and write access. To learn how to generate Lokalise api key please refer to Lokalise documentation.
  6. Now that the Lokalise bundle is enabled and configured, to install go to Settings -> Bundles -> Install(+ icon) against the Lokalise bundle.
  7. The installation process involves creating 3 projects within Lokalise one each for Documents, Objects and Shared Translations. The projects in Lokalise would be created to have the same number of languages as defined in Pimcore settings. Post creation of projects in Lokalise, their Lokalise projectids would be added to websitesettings. If in case the projects already exist in Lokalise, their projectids would be synced to websitesettings.
  8. The installation is now successfully completed.

Document translation

There are two flows in the document translation.

Create Document:-

  1. After opening a document. Lokalise Translate Dropdown will be available on the toolbar. A “Create” option is available in the dropdown for new documents. image
  2. Clicking on the “Create” button, it will open the modal form for language-navigation-title configuration. After filing this form click on the “Apply” button. image
  3. After clicking on the “Apply” button, it will generate keys into Lokalise and then it will change the status for the parent document to “Sent”. image
  4. Then to get the translations of document keys from Lokalise by the translation would have to be verified & reviewed. image
  5. After that you need to run document sync from proccess manager. a child document for that language is automatically generated with the received translation keys and also it will be set verified for that child document or you can also run. image image

Update Document:-

  1. After updating the main document, click on the “Update” button in the Lokalise dropdown.
  2. Note that Update option is only available when their child documents are already created from Lokalise. image
  3. After clicking on the “Update” button, It will update keys in Lokalise. The document state will change to “Updated”.
  4. Only the updated component/keys would be sent for the update in translation. Those keys would be set to unverified at Lokalise end, and would be required to be verified in order to get them updated in Pimcore. image
  5. Need to Click Document sync aftet that it will check full document translation in a certain language is done. If so, a child document for that language is automatically updated with the received translation keys and also it will be set verified for that child document.

Note : Don’t push the keys if parent(path) document is not available for child documents For example: I want to generate a - > test page as de -> test page but de is not available then it will not work so first we need to generate de.

Object translation

Create Object:-

  1. In Object, fields/keys creation option is available at Toolbar -> Lokalise Dropdown -> Create. image
  2. This will send the fields as keys to Lokalise and change the status of the Object from “New” to “Sent”. image
  3. Need to click on object sync to get the translations of Object fields/keys from Lokalise by setting them reviewed and verified.

Update Object:-

  1. Update object works the same as Update Document.

Shared translation

There are two jobs for that

  1. Generate/Update keys job (Push Shared translation)
  2. Sync keys job ( Pull Shared translation) It will generate/update and sync with Lokalise with those jobs.

Auto push in document and object

Steps to enable auto push

  1. Goto website settings
  2. Add lokalise_auto_push setting with checkbox type
  3. Enable lokalise_auto_push

image

List of jobs

  1. Sync documents (Work as bulk pull)
  2. Sync objects (Work as bulk pull)
  3. Bulk Object Push
  4. Generate/Update Shared Translation keys
  5. Sync shared translation
  6. Sync Lokalise keys with Pimcore database

pdchaudhary/lokalise-pimcore 适用场景与选型建议

pdchaudhary/lokalise-pimcore 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.7k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2021 年 08 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「translation」 「e-commerce」 「automatic」 「marketplace」 「pimcore」 「pimcore-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 pdchaudhary/lokalise-pimcore 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 pdchaudhary/lokalise-pimcore 我们能提供哪些服务?
定制开发 / 二次开发

基于 pdchaudhary/lokalise-pimcore 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 2.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-08-29