From f088e346dcfc43b34f6d111a71668ce56aebe478 Mon Sep 17 00:00:00 2001 From: David Calhoun <438664+dcalhoun@users.noreply.github.com> Date: Wed, 22 Dec 2021 15:26:26 -0600 Subject: [PATCH] Remove unused JSON asset files The static JSON file assets are not the sourced by the app. Instead, the data found within the JavaScript bundle itself is utilized. The unnecessary static JSON files should now no longer be exported when bundling the JavaScript thanks to a bug fix in React Native. - https://github.com/wordpress-mobile/gutenberg-mobile/issues/4329#issuecomment-994876657 - https://github.com/facebook/metro/pull/593 --- .../packages/blocks/src/api/i18n-block.json | 17 ---- .../i18n-cache/data/ar.json | 1 - .../i18n-cache/data/bg.json | 1 - .../i18n-cache/data/bo.json | 1 - .../i18n-cache/data/ca.json | 1 - .../i18n-cache/data/cs.json | 1 - .../i18n-cache/data/cy.json | 1 - .../i18n-cache/data/da.json | 1 - .../i18n-cache/data/de.json | 1 - .../i18n-cache/data/el.json | 1 - .../i18n-cache/data/en-au.json | 1 - .../i18n-cache/data/en-ca.json | 1 - .../i18n-cache/data/en-gb.json | 1 - .../i18n-cache/data/en-nz.json | 1 - .../i18n-cache/data/en-za.json | 1 - .../i18n-cache/data/es-ar.json | 1 - .../i18n-cache/data/es-cl.json | 1 - .../i18n-cache/data/es-cr.json | 1 - .../i18n-cache/data/es.json | 1 - .../i18n-cache/data/fa.json | 1 - .../i18n-cache/data/fr.json | 1 - .../i18n-cache/data/gl.json | 1 - .../i18n-cache/data/he.json | 1 - .../i18n-cache/data/hr.json | 1 - .../i18n-cache/data/hu.json | 1 - .../i18n-cache/data/id.json | 1 - .../i18n-cache/data/is.json | 1 - .../i18n-cache/data/it.json | 1 - .../i18n-cache/data/ja.json | 1 - .../i18n-cache/data/ka.json | 1 - .../i18n-cache/data/ko.json | 1 - .../i18n-cache/data/nb.json | 1 - .../i18n-cache/data/nl-be.json | 1 - .../i18n-cache/data/nl.json | 1 - .../i18n-cache/data/pl.json | 1 - .../i18n-cache/data/pt-br.json | 1 - .../i18n-cache/data/pt.json | 1 - .../i18n-cache/data/ro.json | 1 - .../i18n-cache/data/ru.json | 1 - .../i18n-cache/data/sk.json | 1 - .../i18n-cache/data/sq.json | 1 - .../i18n-cache/data/sr.json | 1 - .../i18n-cache/data/sv.json | 1 - .../i18n-cache/data/th.json | 1 - .../i18n-cache/data/tr.json | 1 - .../i18n-cache/data/uk.json | 1 - .../i18n-cache/data/ur.json | 1 - .../i18n-cache/data/vi.json | 1 - .../i18n-cache/data/zh-cn.json | 1 - .../i18n-cache/data/zh-tw.json | 1 - .../plugins/jetpack/extensions/index.json | 79 ------------------- 51 files changed, 145 deletions(-) delete mode 100644 bundle/ios/assets/gutenberg/packages/blocks/src/api/i18n-block.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ar.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/bg.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/bo.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ca.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/cs.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/cy.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/da.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/de.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/el.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/en-au.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/en-ca.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/en-gb.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/en-nz.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/en-za.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/es-ar.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/es-cl.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/es-cr.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/es.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/fa.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/fr.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/gl.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/he.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/hr.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/hu.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/id.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/is.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/it.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ja.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ka.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ko.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/nb.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/nl-be.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/nl.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/pl.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/pt-br.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/pt.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ro.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ru.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/sk.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/sq.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/sr.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/sv.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/th.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/tr.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/uk.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ur.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/vi.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/zh-cn.json delete mode 100644 bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/zh-tw.json delete mode 100644 bundle/ios/assets/jetpack/projects/plugins/jetpack/extensions/index.json diff --git a/bundle/ios/assets/gutenberg/packages/blocks/src/api/i18n-block.json b/bundle/ios/assets/gutenberg/packages/blocks/src/api/i18n-block.json deleted file mode 100644 index 3d31f78592..0000000000 --- a/bundle/ios/assets/gutenberg/packages/blocks/src/api/i18n-block.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "title": "block title", - "description": "block description", - "keywords": [ "block keyword" ], - "styles": [ - { - "label": "block style label" - } - ], - "variations": [ - { - "title": "block variation title", - "description": "block variation description", - "keywords": [ "block variation keyword" ] - } - ] -} diff --git a/bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ar.json b/bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ar.json deleted file mode 100644 index a51f663bc5..0000000000 --- a/bundle/ios/assets/gutenberg/packages/react-native-editor/i18n-cache/data/ar.json +++ /dev/null @@ -1 +0,0 @@ -{"100":["100"],"block description\u0004Displays a paginated navigation to next/previous set of comments, when applicable.":[],"block title\u0004Comments Pagination":[],"%s - Content":[],"%s - Header":[],"Added by":[],"No %s found.":[],"This template has been customized":[],"Actions":[],"An error occurred while reverting the template.":[],"Rename template":[],"Rename":[],"An error occurred while renaming the template.":[],"Template has been renamed.":[],"An error occurred while creating the template part.":[],"Title is not defined.":[],"An error occurred while creating the template.":[],"Select palette type":[],"Custom gradients are empty! Add some gradients to create your own palette.":[],"Add custom colors":[],"Manage the fonts and typography used on the links.":[],"Manage the fonts used on the site.":[],"Manage the typography settings for different elements.":[],"Aa":[],"An error occurred while deleting the template.":[],"\"%s\" removed.":[],"action\u0004New":[],"Show arrow":[],"Create a new menu?":[],"If you want to edit the gallery you just added in the mobile app, to avoid losing any data please make sure you use version 18.2 of the app or above.":[],"Arrow option for Comments Pagination Next/Previous blocks\u0004Chevron":[],"Arrow option for Comments Pagination Next/Previous blocks\u0004Arrow":[],"Arrow option for Comments Pagination Next/Previous blocks\u0004None":[],"A decorative arrow appended to the next and previous comments link.":[],"Indicates this palette is created by the user.\u0004Custom":[],"Indicates this palette comes from the theme.\u0004Custom":[],"Indicates this palette comes from WordPress.\u0004Default":[],"Indicates this palette comes from the theme.\u0004Theme":[],"Add default block":[],"Theme Editor":[],"Sorry, you are not allowed to export templates and template parts.":[],"Whether a template is a custom template.":[],"The ID for the author of the template.":[],"Source of customized template":[],"Invalid author ID.":[],"Unable to open export file (archive) for writing.":[],"Zip Export not supported.":[],"Displays when no content is found.":[],"Displays the privacy policy page.":[],"Displays individual media items or attachments.":[],"Displays latest posts with single post tag.":[],"Displays posts from a specific date.":[],"Displays latest posts from a single post taxonomy.":[],"Displays latest posts in single post category.":[],"Displays latest posts written by a single author.":[],"Displays post categories, tags, and other archives.":[],"Displays a single page.":[],"Displays a single post.":[],"Displays a single post or page.":[],"Displays as the site's home page.":[],"Displays as the site's home page, or as the Posts page when a static home page it set.":[],"Displays posts.":[],"Gutenberg requires WordPress %s or later in order to enable the “Correct invalidly nested XHTML automatically” option. Please upgrade WordPress before enabling.":[],"submenu":[],"Here’s a detailed guide to learn how to make the most of it.":[],"New to block themes and styling your site? ":[],"You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.":[],"Personalize blocks":[],"You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle! ":[],"Set the design":[],"Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.":[],"Welcome to Styles":[],"Welcome to styles":[],"styles":[],"Click to start designing your blocks, and choose your typography, layout, and colors.":[],"Design everything on your site — from the header right down to the footer — using blocks.":[],"Edit your site":[],"Get Started":[],"Welcome to the site editor":[],"Add a featured image":[],"Select menu":[],"View Templates":[],"View Template Parts":[],"The id of the global style variation":[],"Navigation Menus":[],"block description\u0004This block is deprecated. Please use the Comments Query Loop block instead.":[],"block title\u0004Post Comment (deprecated)":[],"block description\u0004Show a block pattern.":[],"block title\u0004Pattern":[],"block keyword\u0004location":[],"block description\u0004Define a navigation area for your theme. The navigation block associated with this area will be automatically displayed.":[],"block title\u0004Navigation Area":[],"block description\u0004An advanced block that allows displaying post comments based on different query parameters and visual configurations.":[],"block title\u0004Comments Query Loop":[],"block description\u0004Contains the block elements used to render a comment, like the title, date, author, avatar and more.":[],"block title\u0004Comment Template":[],"block description\u0004Displays a link to reply to a comment.":[],"block title\u0004Comment Reply Link":[],"block description\u0004Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.":[],"block title\u0004Comment Edit Link":[],"block description\u0004Add the date of this comment.":[],"block description\u0004Displays the contents of a comment.":[],"block description\u0004Add the author name of this comment.":[],"block title\u0004Comment Author Name":[],"block description\u0004Add the avatar of this comment's author.":[],"%s applied.":[],"%s removed.":[],"Sorry, you are not allowed to upload this file type.":[],"The following changes have been made to your site, templates, and content.":[],"The following content has been modified.":[],"This change will affect pages and posts that use this template.":[],"This change will affect your whole site.":[],"Use left and right arrow keys to resize the canvas.":[],"Drag to resize":[],"The following blocks haven't been saved because they are not supported: \"%s\".":[],"Transform":[],"Select Area":[],"Submenu & overlay background":[],"Submenu & overlay text":[],"Navigation menu has been deleted or is unavailable. ":[],"Confirm":[],"Delete %s":[],"%s navigation":[],"Create new menu":[],"Classic Menus":[],"Menus":[],"Open list view":[],"Embed Wolfram Cloud notebook content.":[],"Reply":[],"block title\u0004Comment Author Avatar":[],"Avatar Settings":[],"Displays more block tools":[],"Create a two-tone color effect without losing your original image.":[],"Remove %s":[],"%1$d pattern found for \"%2$s\"":[],"Label for showing all block patterns\u0004Explore":[],"Explore all patterns":[],"Allow to wrap to multiple lines":[],"Classic menu: %s":[],"Navigation Menus list":[],"Navigation Menus list navigation":[],"Filter Navigation Menu list":[],"Uploaded to this Navigation Menu":[],"Insert into Navigation Menu":[],"Navigation Menu archives":[],"No Navigation Menu found in Trash.":[],"No Navigation Menu found.":[],"Parent Navigation Menu:":[],"Search Navigation Menus":[],"All Navigation Menus":[],"View Navigation Menu":[],"Edit Navigation Menu":[],"New Navigation Menu":[],"Add New Navigation Menu":[],"Navigation Menu\u0004Add New":[],"Admin Menu text\u0004Navigation Menus":[],"Editor %s":[],"Editor (beta)":[],"Error when decoding a JSON file at path %1$s: %2$s":[],"File %s doesn't exist!":[],"Theme not found.":[],"HTML title for the post, transformed for display.":[],"Title for the global styles variation, as it exists in the database.":[],"Title of the global styles variation.":[],"Global settings.":[],"Global styles.":[],"ID of global styles config.":[],"No global styles config exist with that id.":[],"Sorry, you are not allowed to access the global styles on this site.":[],"The theme identifier":[],"The ID of the assigned navigation.":[],"The description of the navigation area.":[],"The name of the navigation area.":[],"Invalid navigation area.":[],"Sorry, you are not allowed to view navigation areas.":[],"An alphanumeric identifier for the navigation area.":[],"%s Avatar":[],"block style label\u0004Plain":[],"More Global Styles Actions":[],"Set the default color used for links across the site.":[],"Set the default color used for text across the site.":[],"Set a background color or gradient for the whole site.":[],"Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.":[],"Elements":[],"Manage palettes and the default color of different global elements on the site.":[],"Customize the appearance of specific blocks and for the whole site.":[],"Browse all %s":[],"Areas":[],"general":[],"Post Terms":[],"Link to comment":[],"Link to authors URL":[],"New %s":[],"Create a new %s.":[],"Choose an existing %s or create a new one.":[],"Creating your new %s…":[],"Name and create your new %s":[],"There is no other %s available. If you are looking for another type of template part, try searching for it using the input above.":[],"Add a site logo":[],"Page List: No pages to show.":[],"Open on click":[],"Submenus":[],"Always":[],"Collapses the navigation options in a menu icon opening an overlay.":[],"Configure overlay menu":[],"Overlay Menu":[],"Display":[],"Embed Pinterest pins, boards, and profiles.":[],"bookmark":[],"Drag and drop onto this block, upload, or select existing media from your library.":[],"Show only top level categories":[],"Select color type":[],"https://wordpress.org/support/article/page-jumps/":[],"Post type to get the templates for.":[],"Limit to the specified template part area.":[],"Featured":[],"block description\u0004Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.":[],"Highlight":["تمييز"],"Create Page: %s":["إنشاء صفحة: %s"],"You do not have permission to create Pages.":["ليس لديك صلاحية إنشاء صفحات."],"Apply format: %s":[],"Beta":["تجريبي Beta"],"%d color":[],"Palette":["طبق الألوان"],"Sidebar":["الشريط الجانبي"],"Navigate to the previous view":[],"Include the label as part of the link":[],"Previous: ":["السابق:"],"Next: ":["التالي:"],"Make title link to home":[],"This item is missing a link":[],"Block spacing":[],"Max %s wide":[],"label before the title of the previous post\u0004Previous:":[],"label before the title of the next post\u0004Next:":[],"block description\u0004Add a submenu to your navigation.":[],"block title\u0004Submenu":["القائمة الفرعية"],"block description\u0004Display content in multiple columns, with blocks added to each column.":[],"Customize the appearance of specific blocks for the whole site.":[],"Colors":["الألوان"],"Navigation Post":[],"New menu":["قائمة جديدة"],"An error occurred while trying to update menu locations.":[],"Menu locations have been updated.":[],"Menu item":["عنصر القائمة"],"The