{"action":"created","issue":{"url":"https://api.github.com/repos/artf/grapesjs/issues/2380","repository_url":"https://api.github.com/repos/artf/grapesjs","labels_url":"https://api.github.com/repos/artf/grapesjs/issues/2380/labels{/name}","comments_url":"https://api.github.com/repos/artf/grapesjs/issues/2380/comments","events_url":"https://api.github.com/repos/artf/grapesjs/issues/2380/events","html_url":"https://github.com/artf/grapesjs/issues/2380","id":518347008,"node_id":"MDU6SXNzdWU1MTgzNDcwMDg=","number":2380,"title":"[QUESTION] Support multiple languages for the page content","user":{"login":"varadero","id":7610713,"node_id":"MDQ6VXNlcjc2MTA3MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/7610713?v=4","gravatar_id":"","url":"https://api.github.com/users/varadero","html_url":"https://github.com/varadero","followers_url":"https://api.github.com/users/varadero/followers","following_url":"https://api.github.com/users/varadero/following{/other_user}","gists_url":"https://api.github.com/users/varadero/gists{/gist_id}","starred_url":"https://api.github.com/users/varadero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varadero/subscriptions","organizations_url":"https://api.github.com/users/varadero/orgs","repos_url":"https://api.github.com/users/varadero/repos","events_url":"https://api.github.com/users/varadero/events{/privacy}","received_events_url":"https://api.github.com/users/varadero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-11-06T09:30:57Z","updated_at":"2019-11-06T10:46:44Z","closed_at":null,"author_association":"NONE","body":"What we need is to create a page once but translate the text content in multiple languages. Imagine a very simple sample of a single text block saying \"Hello\" - we don't want to force the users to create another page with that same text block saying the same in different language. Imagine the page must be translated in 10 languages and the page has 20 text blocks - it would be too hard to do and maintain clones of the page containing the same components with just different texts (adding new text field would require adding it in every clone, which is something that nobody will do). Is there any way to do this with current GrapesJS like a drop-down which switches between different \"sets\" of text content so the user can choose a language and then go and change the text content for that language of whatever components he wants ?\r\n\r\nI was thinking of storing the \"data\" object on StoreManager's \"store\" function on language change, but this will not work well if the user switches the language and adds new component - then the current language object and all other language objects will become different (other language objects not having the new component added for the current language)."},"comment":{"url":"https://api.github.com/repos/artf/grapesjs/issues/comments/550254612","html_url":"https://github.com/artf/grapesjs/issues/2380#issuecomment-550254612","issue_url":"https://api.github.com/repos/artf/grapesjs/issues/2380","id":550254612,"node_id":"MDEyOklzc3VlQ29tbWVudDU1MDI1NDYxMg==","user":{"login":"varadero","id":7610713,"node_id":"MDQ6VXNlcjc2MTA3MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/7610713?v=4","gravatar_id":"","url":"https://api.github.com/users/varadero","html_url":"https://github.com/varadero","followers_url":"https://api.github.com/users/varadero/followers","following_url":"https://api.github.com/users/varadero/following{/other_user}","gists_url":"https://api.github.com/users/varadero/gists{/gist_id}","starred_url":"https://api.github.com/users/varadero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varadero/subscriptions","organizations_url":"https://api.github.com/users/varadero/orgs","repos_url":"https://api.github.com/users/varadero/repos","events_url":"https://api.github.com/users/varadero/events{/privacy}","received_events_url":"https://api.github.com/users/varadero/received_events","type":"User","site_admin":false},"created_at":"2019-11-06T10:46:44Z","updated_at":"2019-11-06T10:46:44Z","author_association":"NONE","body":"@pouyamiralayi But isn't that i18n mentioned there just a module that will allow you to translate GrapesJS itself, not the content that the user created ?"}}
{"actor":{"display_login":"varadero"}}