Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Translations Laravel Package

becklyn/translations

View on GitHub
Deep Wiki
Context7
1.3.0

1.3.0

:gift: New Features

  • Add support for PHP 8.

:sparkles: Improvements

  • Add missing property types and return types.
  • Add support for Symfony 6.

:hammer_and_wrench: Internal

  • Fix Symfony deprecations.
  • Replace TravisCI with GitHub Actions.
  • Remove support for Symfony 4.4.
1.2.1

1.2.1

:sparkles: Improvements

  • Add support for other installation directories of node.
1.2.0

1.2.0

:sparkles: Improvements

  • Drop support for Symfony 4.x.
  • Set minimum PHP version to 7.4.
  • Add support fpr PHP 8.x.

:bug: Bug Fixes

  • Try searching in the current Request's locale first before looking in the main Request.

:hammer_and_wrench: Internal

  • Update TranslationsCacheWarmer to match newer CacheWarmerInterface interface definitions.
  • Always require newest version of becklyn/php-cs.
1.1.0

1.1.0

:gift: New Features

  • Add LinkedTranslationBuilder and LinkedTranslationBuilderFactory.
1.0.5

:sparkles: Improvements

  • Add two level cache to improve prod performance.
  • Make ConfigCache more reliable and avoid issues due to symfony's inconsistent resource tracking.
1.0.4

:sparkles: Improvements

  • Use ConfigCache instead of symfony/cache.
1.0.3

:bug: Bug Fixes

  • Properly compile translations before dumping.

:hammer_and_wrench: Internal

  • Update bundle infrastructure.
1.0.2

:sparkles: Improvements

  • Allow Symfony 5.
1.0.1

:bug: Bug Fixes

  • Fix JSON output if the JSON structure contains slashes.
1.0.0

Symfony JavaScript Translator

This is a modern implementation of the JS translator to translate Symfony's translation messages. Best to be used with the translation bundle.

Initialization

For example like this (using mojave):

import {initFromGlobalData} from "mojave/init"; 
import {Translator} from "[@becklyn](https://github.com/becklyn)/translator";

let translator = initFromGlobalData("TranslatorInit", new Translator());

A manual way to wire it up to global data is like this:

function loadGlobalData (key, handler)
{
    if (undefined === window[key])
    {
        return;
    }

    // replace global callback
    window[key].init = (data) => handler.init(data);
    // handle current data
    handler.init(window[key].data);
}

let translator = new Translator();
loadGlobalData("TranslatorInit", translator);
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui