Git Product home page Git Product logo

Comments (5)

mbi avatar mbi commented on June 15, 2024

Hi. Have you considered having the container share a volume with the host? That way the locale catalogs saved by Rosetta will be persisted on the host.

from django-rosetta.

jyoost avatar jyoost commented on June 15, 2024

from django-rosetta.

scwall avatar scwall commented on June 15, 2024

Hello, I apologize for the delay. To answer the question, here is how I proceed with laravel and docker
I use https://github.com/barryvdh/laravel-translation-manager
I run this in my docker-entrypoint which generates the translation files
example :

if [[ $# -eq 0 || $1 = "-e=prod" || $1 = "--env=prod" ]]; then
    echo "add new translation..."
    php artisan translations:export auth
    php artisan translations:export pagination
    php artisan translations:export passwords
    php artisan translations:export translation
    php artisan translations:export validation

it generates the translations which are volatile during the docker time which allows to be always up to date, if an update is done then an update is done in the volatile files and at the next construction of the docker the new translations are directly applied to the launching

To answer the question of a shared volume it doesn't seem to me a good idea, no possibility to scale the application on several nodes. The only possible way would be to store them on an S3 from amazon or minio. But this implies to translate the files to store them in an S3 to take them back after the docker build.

But thinking about it. Storing them on an S3 could be a solution. Adding a command that translates and pushes the po's on an S3 would be a solution, it would be enough to retrieve them afterwards : 🧐

from django-rosetta.

mbi avatar mbi commented on June 15, 2024

Using S3 as a translation storage for Rosetta is being discussed in #246.

from django-rosetta.

scwall avatar scwall commented on June 15, 2024

Perfect thank you I'm looking at this

from django-rosetta.

Related Issues (20)

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.