{"id":136140,"date":"2021-02-05T08:49:35","date_gmt":"2021-02-05T08:49:35","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/multilang-block\/"},"modified":"2021-02-05T08:49:07","modified_gmt":"2021-02-05T08:49:07","slug":"multilang-block","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/multilang-block\/","author":9273612,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.0","stable_tag":"0.1.0","tested":"5.6.0","requires":"5.3.0","requires_php":"7.0.0","requires_plugins":"","header_name":"Multilang Block","header_author":"Artur Piszek (artpi)","header_description":"Create hidden content visible only for speakers of other languages","assets_banners_color":"","last_updated":"2021-02-05 08:49:07","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/piszek.com","rating":0,"author_block_rating":0,"active_installs":30,"downloads":1416,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"artpi","date":"2021-02-05 08:49:07"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2469350,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2469350,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"artpi\/multilang-block":{"apiVersion":2,"name":"artpi\/multilang-block","title":"Multilang Block","category":"widgets","icon":"lang","description":"Create hidden content visible only for speakers of other languages","textdomain":"multilang-block","supports":{"html":false},"editorScript":"file:.\/build\/index.js","editorStyle":"file:.\/build\/index.css","style":"file:.\/build\/style-index.css"}},"tagged_versions":["0.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2469350,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"An example of the Multilang block wrapping an introduction for Polish visitors."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1385,44308,1386,2333],"plugin_category":[48],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-136140","plugin","type-plugin","status-publish","hentry","plugin_tags-language","plugin_tags-multilang","plugin_tags-multilanguage","plugin_tags-translation","plugin_category-language-tools","plugin_committers-artpi"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/multilang-block\/assets\/icon-128x128.png?rev=2469350","icon_2x":"https:\/\/ps.w.org\/multilang-block\/assets\/icon-256x256.png?rev=2469350","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/multilang-block\/assets\/screenshot-1.png?rev=2469350","caption":"An example of the Multilang block wrapping an introduction for Polish visitors."}],"raw_content":"<!--section=description-->\n<p>Not every site needs 1:1 multilanguage experience. Sometimes you want to give your visitors from a certain country a piece of information like \"check my other site in your language\", or provide a brief introduction.\nMultilang block was created with this idea. Of course, nothing prevents you from wrapping all the content in Multilang block, because it's the best block out there!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/multilang-block<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Insert \"Multilang block\" into your post or page<\/li>\n<li>Select a language for the block<\/li>\n<li>Every block INSIDE the multilang block will be visible only for people who have the selected language in <code>navigator.languages<\/code> of their browsers.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20can%20i%20put%20inside%20the%20multilang%20block%3F'><h3>What can I put inside the Multilang block?<\/h3><\/dt>\n<dd><p>Everything. Except donuts, they get squished and the filling will be all over the place.\nThe block is functionally identical to the group block.<\/p><\/dd>\n<dt id='how%20does%20multilang%20block%20know%20what%20languages%20users%20speak%3F'><h3>How does multilang block know what languages users speak?<\/h3><\/dt>\n<dd><p>Users can set up languages in the browser settings. They are passed to <code>navigator.languages<\/code> property.\nMultilang block reads this list and if the language you selected is on there - block is displayed.\nIt stays hidden for users that don't have that language set in browser settings.<\/p><\/dd>\n<dt id='how%20is%20the%20content%20hidden%3F'><h3>How is the content hidden?<\/h3><\/dt>\n<dd><p>In JavaScript. Post Content has the full content of the post, so it will probably show up in RSS, and in similar delivery systems.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Release<\/li>\n<\/ul>","raw_excerpt":"Multilang block provides a simple multilanguage experience right in Gutenberg. You can create hidden content visible only for speakers of other langua &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/136140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=136140"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/artpi"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=136140"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=136140"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=136140"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=136140"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=136140"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=136140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}