Download the PHP package innoboxrr/locale-generator without Composer

On this page you can find all versions of the php package innoboxrr/locale-generator. 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 locale-generator

Locale Generator

Collects the translation keys your Laravel app and its SPA use into <locale>.json, keeps the translations you already have, and can fill the missing ones with Google Translate.

Install

The service providers are auto-discovered. Publishing the config is optional; its tag is config, and passing --provider keeps other packages that use the same tag from publishing their files too:

Configuration

Key Default Meaning
lang_path env('LOCALE_GENERATOR_LANG_PATH'), or lang_path() when empty Directory of the <locale>.json files. A relative path is resolved against the project root.
routes [resource_path()] Directories to scan. node_modules and vendor are always skipped.
extensions php, vue, js, jsx, ts, tsx Extensions of the files to read.
google_api_key env('GOOGLE_TRANSLATE_API_KEY') Used by locale:translate.

An empty routes or extensions, as in a config published by an older version, means the default.

If your SPA loads its translations from another directory, point lang_path there:

locale:generate {locale}

Extracts the literal keys of __('…'), trans('…'), t('…') and $t('…') (also this.$t('…')), in single or double quotes, and merges them into <lang_path>/<locale>.json.

locale:translate {filename} {--force}

Translates the empty values of <lang_path>/<filename>.json with the Google Cloud Translation API (v2), one request per key. The target language is the file name: es, or pt_BR, sent as pt-BR. Both es and es.json are accepted.

Documentación / Documentation

Documentación completa del ecosistema, en español y en inglés / Full ecosystem documentation, in Spanish and English: https://innoboxrr.github.io/docs/paquetes/locale-generator


All versions of locale-generator with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.7
php Version ^8.3
illuminate/support Version ^13.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 innoboxrr/locale-generator contains the following files

Loading the files please wait ...