Comments (5)
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.
from django-rosetta.
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.
Using S3 as a translation storage for Rosetta is being discussed in #246.
from django-rosetta.
Perfect thank you I'm looking at this
from django-rosetta.
Related Issues (20)
- TemplateDoesNotExist at /rosetta/files/project HOT 2
- Why request some url `https://www.google.com/jsapi` HOT 2
- 'Last-Translator' is written as b'....' in pofile
- Plurals with context are rendered incorrectly HOT 6
- `re_path` is not available in django==4.0 anymore HOT 3
- Why split `DJANGO_SETTINGS_MODULE` in function find_pos()? HOT 1
- Missing Azure Location setting HOT 1
- Export Django-rosetta translations HOT 1
- DeepL suggestions not working HOT 1
- Triple entries in local dev env on Mac HOT 8
- anyone can add chatgpt support? HOT 2
- DeepL translates variable names
- DeepL Pro support HOT 3
- Updating docs to get ROSETTA_LANGUAGE_GROUPS=True working HOT 1
- REFLANG not working anymore? HOT 1
- Infinite Redirected Loop when Accessing Django Rosetta Page with users other than superuser HOT 1
- Chinese locale directory should be named 'zh_Hans' instead of 'zh_hans' HOT 2
- How to translate third-party apps?
- TypeError at../rosetta/files/project HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-rosetta.