Download the PHP package dev-alysonh/inertia-vue-translate without Composer

On this page you can find all versions of the php package dev-alysonh/inertia-vue-translate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package inertia-vue-translate

Introduction:

This is a simple package that defines a mixin in your Laravel application with Inertia and Vue.js to handle translations similarly to how it's done in blade.php files. It becomes particularly useful when working with Vue.js, as Inertia.js does not natively provide a way to manage translations when needed.

I developed this package to make my life easier and avoid having to manually implement this mixin in every project. I hope it will be helpful for you as well.

Set Up:

Setting up this package is very simple. All you need to do is follow these steps:

That's it! You can now start translating texts in your Laravel application with Inertia + Vue.js, similar to how you would in blade.php files:

Important to know

This package will create two language files in /resources/lang by default: en.json (English) and pt_BR.json (Brazilian Portuguese). These files don't contain any specific translations yet; they are there for you to start translating your content.

The ShareTranslations middleware fetches a translation file based on your Laravel application's locale. For instance, if your locale is set to en (English), it will look for translations in resources/lang/en.json and cache them indefinitely.

Therefore, ensure you have a cache driver configured in your application, and remember to clear the cache whenever new translations are added; otherwise, you'll never see them!

Contributing

Feel free to submit pull requests, as long as they are well-documented and explain the reason for your request.

Do not make pull requests to the main branch; instead, create a new branch for your request.

That's it!

Thank's, hope this package help you! Dev.AlysonH


All versions of inertia-vue-translate with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/console Version ^10.0 || ^11.0
illuminate/support Version ^9.0 || ^10.0 || ^11.0
inertiajs/inertia-laravel Version ^1.3
symfony/console Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dev-alysonh/inertia-vue-translate contains the following files

Loading the files please wait ....