Giter Site home page Giter Site logo

transmatic's Introduction

Andrew's GitHub stats-Dark Andrew's GitHub stats-Light

transmatic's People

Contributors

andrewdwallo avatar dependabot[bot] avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

transmatic's Issues

Error: Base table not found (missing migrations)

Package Version

1.0.5

PHP Version

8.1.6

Laravel Version

10.38.1

Which operating system do you use?

None

Translation Service

AWS Translate

Environment Details

Windows with PHP Storm

Problem Description

Error in logs with no translations generated

Failed to dispatch translation batch: {"locale":"nl","exception":"SQLSTATE[42S02]: Base table or view not found: 1146 Table '****.job_batches' doesn't exist (Connection: mysql, SQL: insert into `job_batches` (`id`, `name`, `total_jobs`, `pending_jobs`, `failed_jobs`, `failed_job_ids`, `options`, `created_at`, `cancelled_at`, `finished_at`) values (9ae7a0e5-a324-4044-b867-11766ac8bcd3, TransmaticBatch, 0, 0, 0, [], a:5:{s:10:\"connection\";s:8:\"database\";s:5:\"queue\";s:12:\"translations\";s:13:\"allowFailures\";b:1;s:5:\"catch\";a:1:{i:0;O:47:\"Laravel\\SerializableClosure\\SerializableClosure\":1:{s:12:\"serializable\";O:46:\"Laravel\\SerializableClosure\\Serializers\\Signed\":2:{s:12:\"serializable\";s:587:\"O:46:\"Laravel\\SerializableClosure\\Serializers\\Native\":5:{s:3:\"use\";a:1:{s:2:\"to\";s:2:\"nl\";}s:8:\"function\";s:345:\"function (\\Illuminate\\Bus\\Batch $batch, \\Throwable $e) use ($to) {
                    \\Illuminate\\Support\\Facades\\Log::error('Translation batch failed:', [
                        'batchId' => $batch->id,
                        'locale' => $to,
                        'exception' => $e->getMessage(),
                    ]);
                }\";s:5:\"scope\";s:42:\"Wallo\\Transmatic\\Services\\TranslateService\";s:4:\"this\";N;s:4:\"self\";s:32:\"0000000000000b730000000000000000\";}\";s:4:\"hash\";s:44:\"h5WgT64sSxvzYbaIM3fWf74Oyy+9kR4HydC8xiv8cGQ=\";}}}s:7:\"finally\";a:1:{i:0;O:47:\"Laravel\\SerializableClosure\\SerializableClosure\":1:{s:12:\"serializable\";O:46:\"Laravel\\SerializableClosure\\Serializers\\Signed\":2:{s:12:\"serializable\";s:540:\"O:46:\"Laravel\\SerializableClosure\\Serializers\\Native\":5:{s:3:\"use\";a:2:{s:18:\"translationHandler\";O:49:\"Wallo\\Transmatic\\Services\\Translation\\FileHandler\":2:{s:11:\"\u0000*\u0000filePath\";s:4:\"lang\";s:15:\"\u0000*\u0000checkedFiles\";a:2:{s:2:\"en\";b:1;s:2:\"nl\";b:1;}}s:2:\"to\";s:2:\"nl\";}s:8:\"function\";s:126:\"function () use ($translationHandler, $to) {
                    $translationHandler->setBatchFinished($to);
                }\";s:5:\"scope\";s:42:\"Wallo\\Transmatic\\Services\\TranslateService\";s:4:\"this\";N;s:4:\"self\";s:32:\"0000000000000b790000000000000000\";}\";s:4:\"hash\";s:44:\"VmKO9tSBawDGRLMlkJZozjBw1QAsbuvNufhDMKhi6h4=\";}}}}, 1703196275, ?, ?))"} 

Expected Behavior

No error, with migrations in package

Steps To Reproduce

install latest version and translate.
I dont know when it goes to database but if it goes to database it fails because of missing migrations

Notes

No response

Documentation out of date

Package Version

1.0.5

PHP Version

8.1.6

Laravel Version

10.38.1

Which operating system do you use?

Windows

Translation Service

AWS Translate

Environment Details

Windows with PHP storm

Problem Description

Documentation is out of date.

The documentation says :

translate('Hello World', 'es');

The functions says

translate(string $text, array $replace = [], ?string $to = null)

Second parameter needs to be array instead of string.

Expected Behavior

Correct documentations

Steps To Reproduce

Install and use

translate('Hello World', 'es');

Notes

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.