Skip to content

Commit

Permalink
update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Nov 30, 2023
1 parent 06e8545 commit 0ebd31e
Show file tree
Hide file tree
Showing 27 changed files with 269 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"translations": [
{
"detected_source_language": "EN",
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n <paragraph>\n <text xml:space=\"preserve\">title=\"cómo <\/text>\n <emph> \n <text xml:space=\"preserve\">bonito<\/text>\n <\/emph>\n <text xml:space=\"preserve\"> es esta foto?\"<\/text>\n <\/paragraph>\n<\/document>\n"
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n <paragraph>\n <text xml:space=\"preserve\">title=\"cómo <\/text>\n <emph>\n <text xml:space=\"preserve\">bonito<\/text>\n <\/emph>\n <text xml:space=\"preserve\"> es esta foto?\"<\/text>\n <\/paragraph>\n<\/document>\n"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"translations": [
{
"detected_source_language": "EN",
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n <paragraph>\n <text xml:space=\"preserve\">title=\"cómo <\/text>\n <emph> \n <text xml:space=\"preserve\">malo<\/text>\n <\/emph>\n <text xml:space=\"preserve\"> es esta foto?\"<\/text>\n <\/paragraph>\n<\/document>\n"
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n <paragraph>\n <text xml:space=\"preserve\">title=\"cómo <\/text>\n <emph>\n <text xml:space=\"preserve\">malo<\/text>\n <\/emph>\n <text xml:space=\"preserve\"> es esta foto?\"<\/text>\n <\/paragraph>\n<\/document>\n"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"translations": [
{
"detected_source_language": "EN",
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n <paragraph>\n <text>\n <text>Wickham dice bla <\/text>\n <squary>-<notranslate>@wickham2015<\/notranslate>\n<\/squary> <text> y dice otras cosas<\/text>\n <squary>\n <notranslate>^footnote1<\/notranslate>\n <\/squary>\n <text>.<\/text>\n <\/text>\n <softbreak/>\n <text>\n <text>Bla bla bla <\/text>\n <squary>véase <notranslate>@knuth1984<\/notranslate>, pp. 33-35; también <notranslate>@wickham2015<\/notranslate><\/squary>, <squary>cap. 1<\/squary>\n <\/text>\n <\/paragraph>\n<\/document>\n"
}
]
}
140 changes: 140 additions & 0 deletions tests/testthat/fixtures/example/api/languages-298d87.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
[
{
"language": "BG",
"name": "Bulgarian",
"supports_formality": false
},
{
"language": "CS",
"name": "Czech",
"supports_formality": false
},
{
"language": "DA",
"name": "Danish",
"supports_formality": false
},
{
"language": "DE",
"name": "German",
"supports_formality": true
},
{
"language": "EL",
"name": "Greek",
"supports_formality": false
},
{
"language": "EN-GB",
"name": "English (British)",
Expand All @@ -13,5 +38,120 @@
"language": "ES",
"name": "Spanish",
"supports_formality": true
},
{
"language": "ET",
"name": "Estonian",
"supports_formality": false
},
{
"language": "FI",
"name": "Finnish",
"supports_formality": false
},
{
"language": "FR",
"name": "French",
"supports_formality": true
},
{
"language": "HU",
"name": "Hungarian",
"supports_formality": false
},
{
"language": "ID",
"name": "Indonesian",
"supports_formality": false
},
{
"language": "IT",
"name": "Italian",
"supports_formality": true
},
{
"language": "JA",
"name": "Japanese",
"supports_formality": true
},
{
"language": "KO",
"name": "Korean",
"supports_formality": false
},
{
"language": "LT",
"name": "Lithuanian",
"supports_formality": false
},
{
"language": "LV",
"name": "Latvian",
"supports_formality": false
},
{
"language": "NB",
"name": "Norwegian",
"supports_formality": false
},
{
"language": "NL",
"name": "Dutch",
"supports_formality": true
},
{
"language": "PL",
"name": "Polish",
"supports_formality": true
},
{
"language": "PT-BR",
"name": "Portuguese (Brazilian)",
"supports_formality": true
},
{
"language": "PT-PT",
"name": "Portuguese (European)",
"supports_formality": true
},
{
"language": "RO",
"name": "Romanian",
"supports_formality": false
},
{
"language": "RU",
"name": "Russian",
"supports_formality": true
},
{
"language": "SK",
"name": "Slovak",
"supports_formality": false
},
{
"language": "SL",
"name": "Slovenian",
"supports_formality": false
},
{
"language": "SV",
"name": "Swedish",
"supports_formality": false
},
{
"language": "TR",
"name": "Turkish",
"supports_formality": false
},
{
"language": "UK",
"name": "Ukrainian",
"supports_formality": false
},
{
"language": "ZH",
"name": "Chinese (simplified)",
"supports_formality": false
}
]
108 changes: 108 additions & 0 deletions tests/testthat/fixtures/example/api/languages-d70faa.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,118 @@
[
{
"language": "BG",
"name": "Bulgarian"
},
{
"language": "CS",
"name": "Czech"
},
{
"language": "DA",
"name": "Danish"
},
{
"language": "DE",
"name": "German"
},
{
"language": "EL",
"name": "Greek"
},
{
"language": "EN",
"name": "English"
},
{
"language": "ES",
"name": "Spanish"
},
{
"language": "ET",
"name": "Estonian"
},
{
"language": "FI",
"name": "Finnish"
},
{
"language": "FR",
"name": "French"
},
{
"language": "HU",
"name": "Hungarian"
},
{
"language": "ID",
"name": "Indonesian"
},
{
"language": "IT",
"name": "Italian"
},
{
"language": "JA",
"name": "Japanese"
},
{
"language": "KO",
"name": "Korean"
},
{
"language": "LT",
"name": "Lithuanian"
},
{
"language": "LV",
"name": "Latvian"
},
{
"language": "NB",
"name": "Norwegian"
},
{
"language": "NL",
"name": "Dutch"
},
{
"language": "PL",
"name": "Polish"
},
{
"language": "PT",
"name": "Portuguese"
},
{
"language": "RO",
"name": "Romanian"
},
{
"language": "RU",
"name": "Russian"
},
{
"language": "SK",
"name": "Slovak"
},
{
"language": "SL",
"name": "Slovenian"
},
{
"language": "SV",
"name": "Swedish"
},
{
"language": "TR",
"name": "Turkish"
},
{
"language": "UK",
"name": "Ukrainian"
},
{
"language": "ZH",
"name": "Chinese"
}
]

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"translations": [
{
"detected_source_language": "EN",
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n <heading level=\"2\">\n <text xml:space=\"preserve\">Nombre del paquete y metadatos<\/text>\n <\/heading>\n <heading level=\"3\">\n <text xml:space=\"preserve\">Cómo nombrar tu paquete<\/text>\n <\/heading>\n <list type=\"bullet\" tight=\"true\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Recomendamos encarecidamente nombres cortos, descriptivos y en minúsculas.<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n <heading level=\"3\">\n <text xml:space=\"preserve\">Cómo nombrar tu paquete<\/text>\n <\/heading>\n <list type=\"bullet\" tight=\"false\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Si tu paquete incluye uno o más servicios comerciales, asegúrate de que el nombre no infringe las directrices de la marca.<\/text>\n <\/paragraph>\n <\/item>\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Puedes comprobar si el nombre de tu paquete está disponible, es informativo y no es ofensivo utilizando el botón <\/text>\n <link destination=\"https://github.com/ropenscilabs/available\" title=\"\">\n <code xml:space=\"preserve\">available<\/code>\n <text xml:space=\"preserve\"> paquete<\/text>\n <\/link>\n <text xml:space=\"preserve\">. En concreto, haz <\/text>\n <emph>\n <text xml:space=\"preserve\">no<\/text>\n <\/emph>\n <text xml:space=\"preserve\"> elijas un nombre de paquete que ya se utilice en CRAN o Bioconductor.<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n <heading level=\"3\">\n <text xml:space=\"preserve\">Cómo nombrar tu paquete<\/text>\n <\/heading>\n <list type=\"bullet\" tight=\"true\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Un nombre de paquete más exclusivo puede ser más fácil de rastrear (para que tú y nosotros evaluemos el uso del paquete) y de buscar (para que los usuarios lo encuentren y busquen sus preguntas en Google).<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n <heading level=\"3\">\n <text xml:space=\"preserve\">Poner nombre a tu paquete<\/text>\n <\/heading>\n <list type=\"bullet\" tight=\"true\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Obviamente a <\/text>\n <emph>\n <text xml:space=\"preserve\">demasiado<\/text>\n <\/emph>\n <text xml:space=\"preserve\"> único puede hacer que el paquete sea menos localizable (por ejemplo, podría ser un argumento para nombrar tu paquete <\/text>\n <link destination=\"https://github.com/ropensci/geojson\" title=\"\">\n <text xml:space=\"preserve\">geojson<\/text>\n <\/link>\n <text xml:space=\"preserve\">).<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n <heading level=\"2\">\n <text xml:space=\"preserve\">Nombre del paquete y metadatos<\/text>\n <\/heading>\n<\/document>\n"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"translations": [
{
"detected_source_language": "EN",
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n <list type=\"bullet\" tight=\"true\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Recomendamos encarecidamente nombres cortos, descriptivos y en minúsculas.<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n <heading level=\"3\">\n <text xml:space=\"preserve\">Cómo nombrar tu paquete<\/text>\n <\/heading>\n <list type=\"bullet\" tight=\"false\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Si tu paquete incluye uno o más servicios comerciales, asegúrate de que el nombre no infringe las directrices de la marca.<\/text>\n <\/paragraph>\n <\/item>\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Puedes comprobar si el nombre de tu paquete está disponible, es informativo y no es ofensivo utilizando el botón <\/text>\n <link destination=\"https://github.com/ropenscilabs/available\" title=\"\"> \n <code xml:space=\"preserve\">available<\/code>\n <text xml:space=\"preserve\"> paquete<\/text>\n <\/link>\n <text xml:space=\"preserve\">. En concreto, haz <\/text>\n <emph> \n <text xml:space=\"preserve\">no<\/text>\n <\/emph>\n <text xml:space=\"preserve\"> elijas un nombre de paquete que ya se utilice en CRAN o Bioconductor.<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n <heading level=\"3\">\n <text xml:space=\"preserve\">Cómo nombrar tu paquete<\/text>\n <\/heading>\n <list type=\"bullet\" tight=\"true\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Un nombre de paquete más exclusivo puede ser más fácil de rastrear (para que tú y nosotros evaluemos el uso del paquete) y de buscar (para que los usuarios lo encuentren y busquen sus preguntas en Google).<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n <heading level=\"3\">\n <text xml:space=\"preserve\">Poner nombre a tu paquete<\/text>\n <\/heading>\n <list type=\"bullet\" tight=\"true\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Obviamente a <\/text>\n <emph> \n <text xml:space=\"preserve\">demasiado<\/text>\n <\/emph>\n <text xml:space=\"preserve\"> único puede hacer que el paquete sea menos localizable (por ejemplo, podría ser un argumento para nombrar tu paquete <\/text>\n <link destination=\"https://github.com/ropensci/geojson\" title=\"\"> \n <text xml:space=\"preserve\">geojson<\/text>\n <\/link>\n <text xml:space=\"preserve\">).<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n<\/document>\n"
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE document SYSTEM \"CommonMark.dtd\">\n<document xmlns=\"http://commonmark.org/xml/1.0\">\n <list type=\"bullet\" tight=\"true\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Recomendamos encarecidamente nombres cortos, descriptivos y en minúsculas.<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n <heading level=\"3\">\n <text xml:space=\"preserve\">Cómo nombrar tu paquete<\/text>\n <\/heading>\n <list type=\"bullet\" tight=\"false\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Si tu paquete incluye uno o varios servicios comerciales, asegúrate de que el nombre no infringe las directrices de la marca.<\/text>\n <\/paragraph>\n <\/item>\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Puedes comprobar si el nombre de tu paquete está disponible, es informativo y no es ofensivo utilizando el botón <\/text>\n <link destination=\"https://github.com/ropenscilabs/available\" title=\"\">\n <code xml:space=\"preserve\">available<\/code>\n <text xml:space=\"preserve\"> paquete<\/text>\n <\/link>\n <text xml:space=\"preserve\">. En concreto, haz <\/text>\n <emph>\n <text xml:space=\"preserve\">no<\/text>\n <\/emph>\n <text xml:space=\"preserve\"> elijas un nombre de paquete que ya se utilice en CRAN o Bioconductor.<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n <heading level=\"3\">\n <text xml:space=\"preserve\">Cómo nombrar tu paquete<\/text>\n <\/heading>\n <list type=\"bullet\" tight=\"true\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Un nombre de paquete más exclusivo puede ser más fácil de rastrear (para que tú y nosotros evaluemos el uso del paquete) y de buscar (para que los usuarios lo encuentren y busquen sus preguntas en Google).<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n <heading level=\"3\">\n <text xml:space=\"preserve\">Poner nombre a tu paquete<\/text>\n <\/heading>\n <list type=\"bullet\" tight=\"true\">\n <item>\n <paragraph>\n <text xml:space=\"preserve\">Obviamente a <\/text>\n <emph>\n <text xml:space=\"preserve\">demasiado<\/text>\n <\/emph>\n <text xml:space=\"preserve\"> único puede hacer que el paquete sea menos localizable (por ejemplo, podría ser un argumento para nombrar tu paquete <\/text>\n <link destination=\"https://github.com/ropensci/geojson\" title=\"\">\n <text xml:space=\"preserve\">geojson<\/text>\n <\/link>\n <text xml:space=\"preserve\">).<\/text>\n <\/paragraph>\n <\/item>\n <\/list>\n<\/document>\n"
}
]
}
Loading

0 comments on commit 0ebd31e

Please sign in to comment.