-
Notifications
You must be signed in to change notification settings - Fork 214
docs(locadex): update translations on main #2562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| export const localMessage = "Este fragmento de código está en la misma carpeta que la página de prueba!"; | ||
|
|
||
| <Note> | ||
| Este es **local-snippet.mdx**, un fragmento (archivo hermano) en el mismo directorio. | ||
| </Note> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| --- | ||
| title: "Prueba de fragmentos relativos anidados en profundidad" | ||
| description: "Página de prueba oculta para validar importaciones de fragmentos relativos con anidamiento profundo" | ||
| --- | ||
|
|
||
| <div id="deep-relative-snippets-test"> | ||
| # Prueba de fragmentos con rutas relativas de varios niveles | ||
| </div> | ||
|
|
||
| Esta página se encuentra en `/folder/nested/deep-relative-test.mdx` para probar importaciones relativas de varios niveles. | ||
|
|
||
| --- | ||
|
|
||
| <div id="test-1-two-levels-up-snippets"> | ||
| ## Prueba 1: Dos niveles arriba (`../../snippets/`) | ||
| </div> | ||
|
|
||
| Importando desde `/snippets/test-snippet-a.mdx` mediante `../../snippets/`: | ||
|
|
||
| import TestSnippetA from "../../snippets/test-snippet-a.mdx"; | ||
|
|
||
| <TestSnippetA /> | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-2-two-levels-up-with-named-export"> | ||
| ## Prueba 2: Dos niveles arriba con exportación con nombre | ||
| </div> | ||
|
|
||
| Importando desde `/snippets/test-snippet-b.mdx`: | ||
|
|
||
| import TestSnippetB, { testVariable } from "../../snippets/test-snippet-b.mdx"; | ||
|
|
||
| <TestSnippetB /> | ||
|
|
||
| **Valor de la variable exportada:** {testVariable} | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-3-one-level-up"> | ||
| ## Test 3: Un nivel superior (`../`) | ||
| </div> | ||
|
|
||
| Importando desde `/folder/local-snippet.mdx` (directorio padre): | ||
|
|
||
| import LocalSnippet, { localMessage } from "../local-snippet.mdx"; | ||
|
|
||
| <LocalSnippet /> | ||
|
|
||
| **Valor de la variable exportada:** {localMessage} | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-4-same-directory-sibling"> | ||
| ## Prueba 4: Archivo del mismo directorio (`./`) | ||
| </div> | ||
|
|
||
| Importando desde `/folder/nested/deep-snippet.mdx` (mismo directorio): | ||
|
|
||
| import DeepSnippet, { deepMessage } from "./deep-snippet.mdx"; | ||
|
|
||
| <DeepSnippet /> | ||
|
|
||
| **Valor de la variable exportada:** {deepMessage} | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-5-mixed-absolute-path-for-comparison"> | ||
| ## Prueba 5: Mixta: ruta absoluta (para comparación) | ||
| </div> | ||
|
|
||
| Importación mediante ruta absoluta: | ||
|
|
||
| import IconsRequired from "/snippets/es/icons-required.mdx"; | ||
|
|
||
| <IconsRequired /> | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="path-resolution-summary"> | ||
| ## Resumen de la resolución de rutas | ||
| </div> | ||
|
|
||
| Desde esta página ubicada en `/folder/nested/deep-relative-test.mdx`: | ||
|
|
||
| | Ruta relativa | Se resuelve como | | ||
| |---------------|-------------| | ||
| | `../../snippets/test-snippet-a.mdx` | `/snippets/test-snippet-a.mdx` | | ||
| | `../local-snippet.mdx` | `/folder/local-snippet.mdx` | | ||
| | `./deep-snippet.mdx` | `/folder/nested/deep-snippet.mdx` | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| export const deepMessage = "¡Saludos desde las profundidades!"; | ||
|
|
||
| <Warning> | ||
| Este es el archivo **deep-snippet.mdx**, que se encuentra en `/folder/nested/`. | ||
| </Warning> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| --- | ||
| title: "Prueba de fragmentos relativos" | ||
| description: "Página de prueba oculta para validar las importaciones relativas de fragmentos" | ||
| --- | ||
|
|
||
| <div id="relative-snippets-test-page"> | ||
| # Página de prueba de fragmentos relativos | ||
| </div> | ||
|
|
||
| Esta es una página de prueba oculta para validar la funcionalidad de importación de fragmentos mediante rutas relativas. | ||
|
|
||
| --- | ||
|
|
||
| <div id="test-1-parent-directory-import-snippets"> | ||
| ## Prueba 1: Importación desde el directorio superior (`../snippets/`) | ||
| </div> | ||
|
|
||
| Importando desde `/snippets/test-snippet-a.mdx` mediante `../snippets/test-snippet-a.mdx`: | ||
|
|
||
| import TestSnippetA from "../snippets/test-snippet-a.mdx"; | ||
|
|
||
| <TestSnippetA /> | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-2-parent-directory-import-with-named-export"> | ||
| ## Prueba 2: Importación desde el directorio padre con exportación nombrada | ||
| </div> | ||
|
|
||
| Importando `testVariable` desde `/snippets/test-snippet-b.mdx`: | ||
|
|
||
| import TestSnippetB from "../snippets/test-snippet-b.mdx"; | ||
|
|
||
| <TestSnippetB /> | ||
|
|
||
| **Valor de la variable exportada:** {testVariable} | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-3-same-directory-import"> | ||
| ## Prueba 3: Importación desde el mismo directorio (`./`) | ||
| </div> | ||
|
|
||
| Importando desde `local-snippet.mdx` en la misma carpeta: | ||
|
|
||
| import LocalSnippet, { localMessage } from "./local-snippet.mdx"; | ||
|
|
||
| <LocalSnippet /> | ||
|
|
||
| **Valor de la variable exportada:** {localMessage} | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-4-child-directory-import-nested"> | ||
| ## Test 4: Importación desde subdirectorio (`./nested/`) | ||
| </div> | ||
|
|
||
| Importación desde `nested/deep-snippet.mdx`: | ||
|
|
||
| import DeepSnippet, { deepMessage } from "./nested/deep-snippet.mdx"; | ||
|
|
||
| <DeepSnippet /> | ||
|
|
||
| **Valor de la variable exportada:** {deepMessage} | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-5-absolute-import-for-comparison"> | ||
| ## Prueba 5: importación absoluta (para comparación) | ||
| </div> | ||
|
|
||
| Importando mediante la ruta absoluta `/snippets/icons-optional.mdx`: | ||
|
|
||
| import IconsOptional from "/snippets/es/icons-optional.mdx"; | ||
|
|
||
| <IconsOptional /> | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="summary"> | ||
| ## Resumen | ||
| </div> | ||
|
|
||
| | Prueba | Ruta de importación | Tipo | Estado | | ||
| |------|-------------|------|--------| | ||
| | 1 | `../snippets/test-snippet-a.mdx` | Directorio superior | Ver más arriba | | ||
| | 2 | `../snippets/test-snippet-b.mdx` | Directorio superior + export | Ver más arriba | | ||
| | 3 | `./local-snippet.mdx` | Mismo directorio | Ver más arriba | | ||
| | 4 | `./nested/deep-snippet.mdx` | Subdirectorio | Ver más arriba | | ||
| | 5 | `/snippets/icons-optional.mdx` | Ruta absoluta | Ver más arriba | | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| export const localMessage = "Cet extrait se trouve dans le même dossier que la page de test !"; | ||
|
|
||
| <Note> | ||
| Ceci est **local-snippet.mdx** - un extrait au même niveau dans le même répertoire. | ||
| </Note> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| --- | ||
| title: "Test des snippets relatifs imbriqués en profondeur" | ||
| description: "Page de test cachée pour valider les imports de snippets relatifs imbriqués en profondeur" | ||
| --- | ||
|
|
||
| <div id="deep-relative-snippets-test"> | ||
| # Test de snippets avec chemins relatifs profonds | ||
| </div> | ||
|
|
||
| Cette page est située à `/folder/nested/deep-relative-test.mdx` afin de tester les imports relatifs multi-niveaux. | ||
|
|
||
| --- | ||
|
|
||
| <div id="test-1-two-levels-up-snippets"> | ||
| ## Test 1 : Deux niveaux au-dessus (`../../snippets/`) | ||
| </div> | ||
|
|
||
| Import de `/snippets/test-snippet-a.mdx` en utilisant `../../snippets/` : | ||
|
|
||
| import TestSnippetA from "../../snippets/test-snippet-a.mdx"; | ||
|
|
||
| <TestSnippetA /> | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-2-two-levels-up-with-named-export"> | ||
| ## Test 2 : Deux niveaux au-dessus avec un export nommé | ||
| </div> | ||
|
|
||
| Importation depuis `/snippets/test-snippet-b.mdx` : | ||
|
|
||
| import TestSnippetB, { testVariable } from "../../snippets/test-snippet-b.mdx"; | ||
|
|
||
| <TestSnippetB /> | ||
|
|
||
| **Valeur de la variable exportée :** {testVariable} | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-3-one-level-up"> | ||
| ## Test 3 : Un niveau au-dessus (`../`) | ||
| </div> | ||
|
|
||
| Import depuis `/folder/local-snippet.mdx` (répertoire parent) : | ||
|
|
||
| import LocalSnippet, { localMessage } from "../local-snippet.mdx"; | ||
|
|
||
| <LocalSnippet /> | ||
|
|
||
| **Valeur de la variable exportée :** {localMessage} | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-4-same-directory-sibling"> | ||
| ## Test 4 : Fichier au même niveau (`./`) | ||
| </div> | ||
|
|
||
| Importation depuis `/folder/nested/deep-snippet.mdx` (même répertoire) : | ||
|
|
||
| import DeepSnippet, { deepMessage } from "./deep-snippet.mdx"; | ||
|
|
||
| <DeepSnippet /> | ||
|
|
||
| **Valeur de la variable exportée :** {deepMessage} | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="test-5-mixed-absolute-path-for-comparison"> | ||
| ## Test 5 : Mixte - chemin absolu (à titre de comparaison) | ||
| </div> | ||
|
|
||
| Importation à l’aide d’un chemin absolu : | ||
|
|
||
| import IconsRequired from "/snippets/fr/icons-required.mdx"; | ||
|
|
||
| <IconsRequired /> | ||
|
|
||
| *** | ||
|
|
||
|
|
||
| <div id="path-resolution-summary"> | ||
| ## Résumé de la résolution des chemins | ||
| </div> | ||
|
|
||
| Depuis cette page située à `/folder/nested/deep-relative-test.mdx` : | ||
|
|
||
| | Chemin relatif | Chemin de destination | | ||
| |---------------|-----------------------| | ||
| | `../../snippets/test-snippet-a.mdx` | `/snippets/test-snippet-a.mdx` | | ||
| | `../local-snippet.mdx` | `/folder/local-snippet.mdx` | | ||
| | `./deep-snippet.mdx` | `/folder/nested/deep-snippet.mdx` | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| export const deepMessage = "Salutations des profondeurs !"; | ||
|
|
||
| <Warning> | ||
| Il s’agit du fichier **deep-snippet.mdx** qui se trouve dans `/folder/nested/`. | ||
| </Warning> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing named import for
testVariablecauses undefined referenceHigh Severity
The import statement only imports the default export
TestSnippetBbut the template uses{testVariable}which was never imported. The import is missing the named export{ testVariable }. This will cause an undefined reference error when the page renders. The same issue occurs in both the Spanish and French versions ofrelative-snippets-test.mdx.Additional Locations (1)
fr/folder/relative-snippets-test.mdx#L32-L37