@intlify/vite-plugin-vue-i18n locale translation files splitting
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 32/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript, vite
- Área
- build-system, localization
Línea de trabajo
Comienza revisando el punto de entrada de @intlify/vite-plugin-vue-i18n y la documentación actual de la README sobre la carga de locales. Reproduce el comportamiento informado con las estructuras de directorios de en y fr del issue y determina después qué comportamiento de división y combinación se pretende; se considera terminado cuando varios archivos por locale se combinan correctamente o se documenta la alternativa compatible.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Clear and concise description of the problem
- for some projects custom block code is not the right way
- if we want place locale files in separate directory, we need to use "global" access, so everything is in one file per locale,
example (these files can really grow in size and be really unclear):
locales/en.yaml
locales/fr.yaml
- if we split locale translation files into multiple files, import all locales at once is not working, because its not correctly merged
Suggested solution
- add possibility to split each locale to multiple files, so our structure can look like this:
locales/en/group1/subject1.yaml
locales/en/group1/subject2.yaml
locales/en/group2/subject3.yaml
locales/fr/group1/subject1.yaml
locales/fr/group1/subject2.yaml
locales/fr/group2/subject3.yaml
There are to possibilities how to achieve this:
- more complex way - first directory will define the locale and each directory is a subject path, so if
locales/en/group1/subject1.yamlcontent is this:
foo: foo
bar:
baz: baz
the "generated" file for en locale will be:
group1:
subject1:
foo: foo
bar:
baz: baz
- more simple way - just merge the content, use root subject as locale - we will need to define whole subject in each file, the plugin will just merge everything in one
locales/en/group1/subject1.yaml
en:
group1:
subject1:
foo: foo
bar:
baz: baz
locales/fr/group1/subject1.yaml
fr:
group1:
subject1:
foo: foo
bar:
baz: baz
Alternative
If there is any existing way how to achieve similar code spliting right now without need to implement it, please add it to documentation, because now there is nothing about it.
Additional context
I tried several ways how to structure the dirs, files and content of yaml/json files and nothing was correctly merged, always only one file worked and other were ignored.
Validations
- Read the Contributing Guidelines.
- Read the README
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Lenguaje dominante
- TypeScript
- Estrellas
- 270
- Forks
- 46
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de intlify/bundle-tools
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
intlify/bundle-tools#612 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
intlify/bundle-tools#611 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
intlify/bundle-tools#600 · 5 comentarios ·
-
Locale files are never invalidated on Vite 8 — dev server serves stale translations until restartAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
intlify/bundle-tools#599 · 1 comentario · 1 reacción ·
-
Messages containing @ character are silently dropped in production build with JIT compilationAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
intlify/bundle-tools#533 ·
Todos los issues de intlify/bundle-tools
Issues similares
-
Mend: dependency security vulnerability untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
opensearch-project/security-dashboards-plugin#2545 ·
Los mantenedores suelen responder en 1 día
-
Add: Dream TR SDAbiertocheck:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
doctor integrity sample scans soft-deleted pages on Postgres (batch path has no deleted_at filter)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
SocialGouv/egapro#4672 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
area:agents area:tui bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
anthropics/claude-code#98358 ·
Los mantenedores suelen responder en 1 día