Git Product home page Git Product logo

ahtinurme / laravel-translations Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mohmmedashraf/laravel-translations

0.0 0.0 0.0 3.16 MB

Laravel Translations UI package provides a user-friendly interface for managing translations in your Laravel application. It simplifies tasks such as adding, editing, deleting, and exporting translations. The package also includes a handy search feature and the ability to invite collaborators for easy translation management

License: MIT License

JavaScript 3.03% PHP 88.03% TypeScript 4.90% Blade 1.04% SCSS 3.01%

laravel-translations's Introduction

Cover

Introduction | Roadmap | Installation | Usage | Upgrade | Changelog

Latest Stable Version Tests Total Downloads PHP from Packagist Laravel Version

Introduction

Laravel Translations UI package provides a user-friendly interface for managing translations in your Laravel application. It simplifies tasks such as adding, editing, deleting, and exporting translations. The package also includes a handy search feature and the ability to invite collaborators for easy translation management. Currently, the package is integrated with the Google Translate API, allowing you to translate your content into any language of your choice.

๐Ÿ“บ Watch a 4-minute video by Povilas Korop showcasing the package.


Support

Thank you for considering supporting the development of this package! If you'd like to contribute, you can buy me a coffee or sponsor me to help keep me motivated to continue improving this package. You can also support the project by starring โญ the repository.

To buy me a coffee, click the button below:

Buy Me A Coffee

Requirements

Requires PHP 8.2+ and Laravel 11.x

Features

  • Easily view, create, and delete translations with an intuitive interface.
  • Effortlessly manage translation keys for organized language management.
  • Conveniently filter by translation keys or values to quickly locate specific content.
  • Seamlessly import and export translations to and from your Laravel application
  • Utilize a powerful search function to swiftly find the translations, keys, or values you need.
  • Collaborate seamlessly by inviting contributors to manage translations collaboratively.
  • Benefit from Google Translate API integration for accurate and automated language translation.
  • Explore additional features that enhance your translation workflow and more.

Roadmap

  • Add tests.
  • Improve the UI.
  • Vendor translations support.
  • Google Translate API integration.
  • Invite collaborators to manage translations.
  • Add revision history.
  • Add more features.

Installation

๐Ÿšจ Important Notice: Breaking Changes in this Version ๐Ÿšจ

I would like to inform you that this version brings about substantial breaking changes, as the package stack has transitioned from Livewire to Inertia. This adjustment brings several improvements and optimizations, enhancing the overall performance and user experience.

To seamlessly adapt to these changes, please follow the steps below:

Uninstall the Previous Version

I've added a new command to help you uninstall the package and remove all its assets and configuration files and clean up the database, but please make sure to double-check that everything has been removed before proceeding with the installation of the new version, as this command is still in beta. To uninstall the package, run the following command:

php artisan translations:clean

Alternatively, you can manually remove the package by following these steps:

composer remove outhebox/laravel-translations

Install from Scratch

After uninstallation, perform a fresh installation of the package.

composer require outhebox/laravel-translations --with-all-dependencies

Before you can access the translations UI, you'll need to publish the package's assets and migrations files by running the following command:

php artisan translations:install

Usage

To import your translations, run the following command:

php artisan translations:import

To import and overwrite all previous translations, use the following command:

php artisan translations:import --fresh

To access the translations UI, visit /translations in your browser. If you are using a production environment, you will need to create owner user first. To do so, run the following command:

php artisan translations:contributor

This command will prompt you to enter the user's name, email, and password. Once you have created the owner user, you can log in to the translations UI dashboard and start managing your translations.

Exporting Translations

You can export your translations from the translations UI dashboard or by running the following command:

php artisan translations:export

Configuration

You can configure the package and set your base language by publishing the configuration file:

php artisan vendor:publish --tag=translations-config

This will publish the translations.php configuration file to your config directory.

Upgrading

When upgrading to a new major version of Laravel Translations UI, it's important that you carefully review the upgrade guide.

In addition, when upgrading to any new Translations UI version, you should re-publish Translations UI assets:

php artisan translations:publish

To keep the assets up-to-date and avoid issues in future updates, you may add the translations:publish command to the post-update-cmd scripts in your application's composer.json file:

{
    "scripts": {
        "post-update-cmd": [
            "@php artisan translations:publish --ansi"
        ]
    }
}

Screenshots

login

add_translations_modal

translations_list

add_source_key

edit_source_key

edit_translation_phrase

invite_contributor

publish_translations_files

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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

laravel-translations's People

Contributors

mohmmedashraf avatar ahtinurme avatar shahghasiadil avatar adereksisusanto avatar benaja avatar amshehzad avatar elguitarraverde avatar sdkakcy avatar kha333n avatar madscientiste avatar ronildo-sousa avatar povilaskorop avatar nurmuhammet-ali avatar noahnxt avatar thinkverse avatar kmaking avatar goatform avatar aaronlil avatar

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.