appswithlove/statamic-one-click-content-translation 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

appswithlove/statamic-one-click-content-translation

Composer 安装命令:

composer require appswithlove/statamic-one-click-content-translation

包简介

With the One-click Content Translation addon for Statamic, translations are done in a breeze, directly in the CMS.

README 文档

README

Statamic 4.0+

With the One-click Content Translation addon for Statamic, translations are done in a breeze, directly within the CMS. Thanks to the integration of the DeepL-API or Google Cloud API, text in any language supported by DeepL/Google* can be instantly translated within the Statamic CMS. Say goodbye to endless copy and pasting and experience the luxury of automatic translations for the languages on your website.

You can use One-click Content Translation for almost all text and field types. Titles, paragraphs – you name it! The add-on automatically detects the language you're translating and puts it into the language of the selected page you're editing in Statamic.

Of course the API limits apply, so you'll need to use your own API key and/or DeepL subscription. For more info on the free version and subscription options, check out the DeepL website. Same thing for Google Cloud Translation, obviously.

*DeepL has a list of supported languages here: https://support.deepl.com/hc/en-us/articles/360019925219-Languages-included-in-DeepL-Pro

The list of languages supported by Google can be found here: https://cloud.google.com/translate/docs/languages

One-click Content Translation

One-click Content Translation is a Commercial Addon.

You can use the addon for free while in development, but it requires a license to use on a live site. Learn more or buy a license on The Statamic Marketplace!

Installation

  1. Install One-click Content Translation from the Tools > Addons section of your control panel, or via composer:
composer require appswithlove/statamic-one-click-content-translation
php artisan vendor:publish --tag="statamic-one-click-content-translation"
php artisan vendor:publish --tag="statamic-one-click-content-translation-config"
  1. Set Deepl Auth Key to .env file TRANSLATION_DEEPL_AUTH_KEY=. To get an Auth Key go to https://www.deepl.com/docs-api/api-access/authentication/ List of countries where Deepl is available.

Note: The addon will not work without a Deepl Auth Key

OR

Set Translate Service in .env file to TRANSLATION_SERVICE=google. Set Google Cloud Auth Key in .env file TRANSLATION_GOOGLE_APPLICATION_CREDENTIALS=. Set Google Cloud resource ID in .env file TRANSLATION_GOOGLE_APPLICATION_ID=.

Usage

The One-click Content Translation addon will add a special button for secondary languages into collection entry edit views. After a click on the button the addon will translate content inside the related field from the default language to the selected one.

If you have a field with language suffix, like title_en you will see two buttons: translate to selected language and translate to EN language.

For using the functionality for globals or assets you have to add the one_click_content_translation_inputs field to each required blueprint.

Uninstalling

To uninstall, run:

composer remove appswithlove/statamic-one-click-content-translation
rm -r public/vendor/statamic-one-click-content-translation

Demo

Demo One-click Content Translation

Google Cloud

Version Compatibility

Addon Version Supported Statamic Versions
6.x 6.x
5.x 3.x, 4.x, 5.x

appswithlove/statamic-one-click-content-translation 适用场景与选型建议

appswithlove/statamic-one-click-content-translation 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 58.64k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2022 年 11 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 appswithlove/statamic-one-click-content-translation 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 9
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-11-17