vladislavbogomolov/transheet
Composer 安装命令:
composer require vladislavbogomolov/transheet
包简介
Google Sheets as a translation tool
README 文档
README
Transheet
Free solution to manage your translations
Report Bug
·
Request Feature
Getting Started
Enable Google Sheets API and create Service account
- Go to Console Google Cloud Platform
- Enable "Google Sheets API"
- Click "Manage"
- Click "Credentials"
- Click "Create credentials"
- Click "OAuth client ID"
- Click "Configure consent screen"
- Choose "External" > Create
- Add scopes for "Google Sheets API"
.../auth/drive.file - Save and continue
- Publish app
- Click on “Credentials” and choose "OAuth Client ID" from the “Create credentials”
- Choose "Web application" and click "Create"
- Click on "Download json", put file in root of your project and rename it in
client_secret.json - Click "Service account"
- Type "ServiceAccount" in "Service account name" text field
- Click "Create and continue"
- Click "Done"
- Copy EMAIL address of service account created
Create Spreadsheet
- Start a new spreadsheet
- Click "Share" the button into the top right corner
- Past copied service account email and click "Done"
- Add to your .env ID of spreadsheet created.
Example:
SPREADSHEETID=1Tu3EvufoNVnnUvRnc-3d-3raww6Z7ti951xegnqlsDM
- Add to your .env sheet name.
Example:
SHEETNAME=Sheet1
- Set A1 with value "key" without double quotes
- From B1 to Z1 set ISO 639-1 Code languages of interest
Example:
Installation package
- Install
composer require vladislavbogomolov/transheet
- Add into
./config/app.phpfile, afterPackage Service Providers...comment
Vladislavbogomolov\Transheet\TransheetServiceProvider::class,
Usage
This command will create transheet.php in each language folder that will contain translation lists.
php artisan transheet:download
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-04
