Comments (11)
Okay that looks fine.
I think your suggestion with replacing links is the best way of doing it right now, but I will investigate further. I will fix it however probably not until next week.
from strapi-plugin-translate.
For this English text, for example:
Data protection authorities [coordinated their approach at a European level](https://edpb.europa.eu/news/news/2020/european-data-protection-board-thirty-seventh-plenary-session-guidelines-controller_en) to handle the complaints coherently.
As a result, the [Austrian](https://gdprhub.eu/index.php?title=DSB_(Austria)_-_2021-0.586.257_(D155.027)), [French](https://gdprhub.eu/index.php?title=CNIL_(France)_-_Google_Analytics_(no_case_number)), [Italian](https://gdprhub.eu/index.php?title=Garante_per_la_protezione_dei_dati_personali_(Italy)_-_9782890), and [Hungarian](https://gdprhub.eu/index.php?title=NAIH_(Hungary)_-_NAIH-3561-4/2022) DPAs ruled against the use of Google Analytics in very similar decisions, and the Danish DPA essentially did the same in a [press release](https://www.datatilsynet.dk/english/google-analytics/use-of-google-analytics-for-web-analytics).
While the decisions address an individual controller, they all set a precedent that **practically amounts to a State-wide ban**, as we explained [here](https://www.simpleanalytics.com/blog/is-google-analytics-illegal-in-europe#2-what-did-the-authorities-actually-say). Should the CNPD do the same, its decision would set a similar precedent for Portugal.
Translation to Italian:
Le autoritΓ di protezione dei dati [hanno coordinato il loro approccio a livello europeo](<https://edpb.europa.eu/news/news/2020/european-data-protection-board-thirty-seventh-plenary-session-guidelines-controller_en>) per gestire i reclami in modo coerente.
Di conseguenza, le autoritΓ [austriache](<https://gdprhub.eu/index.php?title=DSB_(Austria)_-_2021-0.586.257_(D155.027>)), [francesi](<https://gdprhub.eu/index.php?title=CNIL_(Francia)_-_Google_Analytics_(no_case_number>)), [italiane](<https://gdprhub.eu/index.php?title=Garante_per_la_protezione_dei_dati_personali_(Italia)_-_9782890>) e [Ungherese](<https://gdprhub.eu/index.php?title=NAIH_(Ungheria)_-_NAIH-3561-4/2022>) le DPA si sono pronunciate contro l'uso di Google Analytics in decisioni molto simili, e la DPA danese ha sostanzialmente fatto lo stesso in un [comunicato stampa](<https://www.datatilsynet.dk/english/google-analytics/use-of-google-analytics-for-web-analytics>).
Sebbene le decisioni riguardino un singolo controllore, tutte stabiliscono un precedente che **praticamente equivale a un divieto a livello statale**, come abbiamo spiegato [qui](<https://www.simpleanalytics.com/blog/is-google-analytics-illegal-in-europe#2-what-did-the-authorities-actually-say>). Se la CNPD dovesse fare lo stesso, la sua decisione creerebbe un precedente simile per il Portogallo.
It looks like if links have brackets in them, like [French](https://gdprhub.eu/index.php?title=CNIL_(France)_-_Google_Analytics
, it breaks.
from strapi-plugin-translate.
The format Service is implemented here: plugin/server/services/format.js
I had expected that the html translation would not translate the links. Is the content getting translated or also the href (i.e. what is in the braces in markdown)?
from strapi-plugin-translate.
also the href (i.e. what is in the braces in markdown)?
This as well. Translating the content is fine of course, but the link itself should stay the same, I guess.
from strapi-plugin-translate.
Just to verify, you have used or not overwritten this in the config right?
translatedFieldTypes: [
// ...
{ type: 'richtext', format: 'markdown' },
// ...
],
from strapi-plugin-translate.
This is my config:
// config/plugins.js
{
translate: {
enabled: true,
config: {
provider: "deepl",
providerOptions: {
apiKey: env("DEEPL_API_KEY"),
freeApi: env("DEEPL_API_FREE") === "true",
apiUrl: "https://api.deepl.com",
},
translatedFieldTypes: [
"string",
{ type: "text", format: "plain" },
{ type: "richtext", format: "markdown" },
],
translateRelations: true,
}
}
}
Thanks for looking into it.
from strapi-plugin-translate.
I have just tried it with the following string:
[very important link](https://important.link/with-many/english-words/that-could-be-translated)
and it got translated as expected to:
[sehr wichtiger Link](<https://important.link/with-many/english-words/that-could-be-translated>)
@adriaanvanrossum can you please provide an example where it doesn't work?
from strapi-plugin-translate.
π This issue has been resolved in version 1.0.2 π
The release is available on npm package (@latest dist-tag)
Your semantic-release bot π¦π
from strapi-plugin-translate.
π This issue has been resolved in version 1.1.0-next.2 π
The release is available on npm package (@next dist-tag)
Your semantic-release bot π¦π
from strapi-plugin-translate.
π This issue has been resolved in version 1.0.2 π
The release is available on npm package (@latest dist-tag)
Your semantic-release bot π¦π
from strapi-plugin-translate.
π This issue has been resolved in version 1.0.0 π
The release is available on npm package (@latest dist-tag)
Your semantic-release bot π¦π
from strapi-plugin-translate.
Related Issues (20)
- [FEATURE]: OpenAI (ChatGPT 4) provider HOT 2
- [BUG]: Showing error after translate from default language HOT 10
- [BUG]: Image/s are deleted from the component after translate from default language HOT 2
- [BUG]: TypeError: d.decompose is not a function HOT 7
- [BUG]: Translating entity failed: texts parameter must be a non-empty string or array of non-empty strings HOT 2
- [FEATURE]: Japanese language support for UI HOT 1
- [BUG]: Server breaks when you Pause or Cancel bulk translate HOT 3
- [FEATURE]: Automatic translation or execute using cron? HOT 2
- [BUG]: getRequestUrl no longer available HOT 3
- [BUG]: Component relations inside dynamic zone disappear when translating from content manager
- [BUG]: After translation html tags are turned to markdown HOT 2
- [BUG]: 'NotFound' (imported as 'NotFound') was not found in '@strapi/helper-plugin' HOT 3
- [BUG]: Translate from another locale Link HOT 2
- [FEATURE]: Support nodejs 20 HOT 4
- [BUG]: E2E Tests fail with #359 HOT 3
- [BUG]: Can't build strapi admin panel anymore HOT 6
- [BUG]: E2E Tests fail for 4.15 HOT 3
- [FEATURE]: Re-executing job HOT 1
- [FEATURE]: Translate Rich Text Blocks HOT 9
- [BUG]: Translating with nested components containing JSON field does not work.
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 strapi-plugin-translate.