swiftyper/laravel-fbt-sync

Extension for automatic deployment of fbt framework translations for Laravel

1.0.3 2024-11-03 16:39 UTC

This package is auto-updated.

Last update: 2024-11-03 17:06:50 UTC


README

FBT

Laravel FBT sync

This library allows you to import native phrases and automatically deploy reviewed translations.

Get started with Swiftyper Translations

Requirements

πŸ“¦ Installing

$ composer require swiftyper/laravel-fbt-sync

πŸ”§ Configuration

These steps are required:

  1. Register your FBT project on Swiftyper Translations

  2. Publish config file:

$ php artisan vendor:publish --provider="Swiftyper\fbt\IntlServiceProvider" --tag=swiftyper-config
  1. Set option api_key in /config/fbt.php.

  2. Init project settings:

$ php artisan swiftyper:fbt --init

Options

The following options can be defined:

  • api_key string: Project API key (required)
  • routes bool: Enable routes: /intl/deploy, /intl/upload, /intl/sync
  • verify_signature bool: Verify signature from response

πŸš€ Artisan Command

php artisan swiftyper:fbt

Options

πŸ“œ License

The MIT License (MIT). Please see LICENSE for more information.