Chore: Remove unused test utility

This commit is contained in:
Gustav Hansen 2023-01-20 13:30:59 +01:00
parent 304901ed7e
commit 51f16d50c9
3 changed files with 1 additions and 163 deletions

View File

@ -498,7 +498,7 @@
"components.Input.error.validation.min": "Value is smaller than the minimum",
"components.Input.error.validation.minLength": "Value is shorter than the minimum",
"components.Input.error.validation.minSupMax": "Value cannot be superior",
"components.Input.error.validation.regex": "Value does not match the the required pattern",
"components.Input.error.validation.regex": "Value does not match the required pattern",
"components.Input.error.validation.required": "Value is required",
"components.Input.error.validation.unique": "Value is already used",
"components.InputSelect.option.placeholder": "Choose here",

View File

@ -1,151 +0,0 @@
{
"Analytics": "Analytics",
"Content Manager": "Content Manager",
"Content Type Builder": " Content Types Builder",
"Email": "Email",
"Files Upload": "Files Upload",
"HomePage.notification.newsLetter.success": "Successfully subscribed to the newsletter",
"New entry": "New entry",
"Password": "Password",
"Provider": "Provider",
"ResetPasswordToken": "Reset Password Token",
"Role": "Role",
"Roles & Permissions": "Roles & Permission",
"Settings Manager": "Settings Manager",
"Username": "Username",
"Users": "Users",
"Users & Permissions": "Users & Permissions",
"app.components.BlockLink.code": "Code examples",
"app.components.BlockLink.code.content": "Learn by testing real projects developed the community.",
"app.components.BlockLink.documentation": "Read the documentation",
"app.components.BlockLink.documentation.content": "Discover the concepts, reference guides and tutorials.",
"app.components.Button.cancel": "Cancel",
"app.components.Button.save": "Save",
"app.components.ComingSoonPage.comingSoon": "Coming soon",
"app.components.ComingSoonPage.featuresNotAvailable": "This feature is still under active development.",
"app.components.DownloadInfo.download": "Download in progress...",
"app.components.DownloadInfo.text": "This could take a minute. Thanks for your patience.",
"app.components.EmptyAttributes.title": "There are no fields yet",
"app.components.HomePage.button.blog": "SEE MORE ON THE BLOG",
"app.components.HomePage.button.quickStart": "START THE QUICK START TUTORIAL",
"app.components.HomePage.community": "Find the community on the web",
"app.components.HomePage.community.content": "Discuss with team members, contributors and developers on different channels.",
"app.components.HomePage.createBlock.content.first": "The ",
"app.components.HomePage.createBlock.content.second": " plugin will help you to define the data structure of your models. If youre new here, we highly recommend you to follow our ",
"app.components.HomePage.createBlock.content.tutorial": " tutorial.",
"app.components.HomePage.cta": "CONFIRM",
"app.components.HomePage.newsLetter": "Subscribe to the newsletter to get in touch about Strapi",
"app.components.HomePage.support": "SUPPORT US",
"app.components.HomePage.support.content": "By buying the T-shirt, it will allow us to continue our work on the project to give you the best possible experience!",
"app.components.HomePage.support.link": "GET YOUR T-SHIRT NOW",
"app.components.HomePage.welcome": "Welcome on board!",
"app.components.HomePage.welcome.again": "Welcome ",
"app.components.HomePage.welcomeBlock.content": "We are happy to have you as part of the community. We are constantly looking for feedback so feel free to send us DM on ",
"app.components.HomePage.welcomeBlock.content.again": "We hope you are making progress on your project... Feel free to read the latest new about Strapi. We are giving our best to improve the product based on your feedback.",
"app.components.HomePage.welcomeBlock.content.issues": "issues.",
"app.components.HomePage.welcomeBlock.content.raise": " or raise ",
"app.components.ImgPreview.hint": "Drag & drop your file into this area or {browse} for a file to upload",
"app.components.ImgPreview.hint.browse": "browse",
"app.components.InputFile.newFile": "Add new file",
"app.components.InputFileDetails.open": "Open in a new tab",
"app.components.InputFileDetails.originalName": "Original name:",
"app.components.InputFileDetails.remove": "Remove this file",
"app.components.InputFileDetails.size": "Size:",
"app.components.InstallPluginPage.Download.title": "Downloading...",
"app.components.InstallPluginPage.Download.description": "It might take a few seconds to download and install the plugin.",
"app.components.InstallPluginPage.InputSearch.label": " ",
"app.components.InstallPluginPage.InputSearch.placeholder": "Search for a plugin... (ex: authentication)",
"app.components.InstallPluginPage.description": "Extend your app effortlessly.",
"app.components.InstallPluginPage.helmet": "Marketplace - Plugins",
"app.components.InstallPluginPage.plugin.support-us.description": "Support us by buying the Strapi T-shirt. That will allow us to keep working on the project and try giving you the best possible experience!",
"app.components.InstallPluginPage.title": "Marketplace - Plugins",
"app.components.InstallPluginPopup.downloads": "download",
"app.components.InstallPluginPopup.navLink.avis": "avis",
"app.components.InstallPluginPopup.navLink.changelog": "changelog",
"app.components.InstallPluginPopup.navLink.description": "Description",
"app.components.InstallPluginPopup.navLink.faq": "faq",
"app.components.InstallPluginPopup.navLink.screenshots": "Screenshots",
"app.components.InstallPluginPopup.noDescription": "No description available",
"app.components.LeftMenuFooter.documentation": "Documentation",
"app.components.LeftMenuFooter.help": "Help",
"app.components.LeftMenuFooter.poweredBy": "Powered by ",
"app.components.LeftMenuLinkContainer.configuration": "Configurations",
"app.components.LeftMenuLinkContainer.general": "General",
"app.components.LeftMenuLinkContainer.installNewPlugin": "Marketplace",
"app.components.LeftMenuLinkContainer.listPlugins": "Plugins",
"app.components.LeftMenuLinkContainer.noPluginsInstalled": "No plugins installed yet",
"app.components.LeftMenuLinkContainer.plugins": "Plugins",
"app.components.ListPluginsPage.description": "List of the installed plugins in the project.",
"app.components.ListPluginsPage.helmet.title": "List plugins",
"app.components.ListPluginsPage.title": "Plugins",
"app.components.Logout.profile": "Profile",
"app.components.Logout.logout": "Logout",
"app.components.NotFoundPage.back": "Back to homepage",
"app.components.NotFoundPage.description": "Not Found",
"app.components.Official": "Official",
"app.components.Onboarding.label.completed": "% completed",
"app.components.Onboarding.title": "Get Started Videos",
"app.components.PluginCard.Button.label.download": "Download",
"app.components.PluginCard.Button.label.install": "Already installed",
"app.components.PluginCard.Button.label.support": "Support us",
"app.components.PluginCard.compatible": "Compatible with your app",
"app.components.PluginCard.compatibleCommunity": "Compatible with the community",
"app.components.PluginCard.more-details": "More details",
"app.components.PluginCard.price.free": "Free",
"app.components.PluginCard.settings": "Settings",
"app.components.listPlugins.button": "Add New Plugin",
"app.components.listPlugins.title.none": "No plugins installed",
"app.components.listPlugins.title.plural": "{number} plugins are installed",
"app.components.listPlugins.title.singular": "{number} plugin is installed",
"app.components.listPluginsPage.deletePlugin.error": "An error occurred while uninstalling the plugin",
"app.utils.SelectOption.defaultMessage": " ",
"app.utils.defaultMessage": " ",
"app.utils.placeholder.defaultMessage": " ",
"components.AutoReloadBlocker.description": "Open the following file and enable the feature.",
"components.AutoReloadBlocker.header": "Reload feature is required for this plugin.",
"components.ErrorBoundary.title": "Something went wrong...",
"components.Input.error.attribute.key.taken": "This value already exists",
"components.Input.error.attribute.sameKeyAndName": "Can't be equal",
"components.Input.error.attribute.taken": "This field name already exists",
"components.Input.error.contentTypeName.taken": "This name already exists",
"components.Input.error.custom-error": "{errorMessage} ",
"components.Input.error.validation.email": "This is an invalid email",
"components.Input.error.validation.json": "This doesn't match the JSON format",
"components.Input.error.validation.max": "The value is too high.",
"components.Input.error.validation.maxLength": "The value is too long.",
"components.Input.error.validation.min": "The value is too low.",
"components.Input.error.validation.minLength": "The value is too short.",
"components.Input.error.validation.minSupMax": "Can't be superior",
"components.Input.error.validation.regex": "The value does not match the regex.",
"components.Input.error.validation.required": "This value is required.",
"components.ListRow.empty": "There is no data to be shown.",
"components.OverlayBlocker.description": "You're using a feature that needs the server to restart. Please wait until the server is up.",
"components.OverlayBlocker.description.serverError": "The server should have restarted, please check your logs in the terminal.",
"components.OverlayBlocker.title": "Waiting for restart...",
"components.OverlayBlocker.title.serverError": "The restart is taking longer than expected",
"components.PageFooter.select": "entries per page",
"components.ProductionBlocker.description": "For safety purposes we have to disable this plugin in other environments.",
"components.ProductionBlocker.header": "This plugin is only available in development.",
"components.Wysiwyg.ToggleMode.markdown": "Switch to markdown",
"components.Wysiwyg.ToggleMode.preview": "Switch to preview",
"components.Wysiwyg.collapse": "Collapse",
"components.Wysiwyg.selectOptions.H1": "Title H1",
"components.Wysiwyg.selectOptions.H2": "Title H2",
"components.Wysiwyg.selectOptions.H3": "Title H3",
"components.Wysiwyg.selectOptions.H4": "Title H4",
"components.Wysiwyg.selectOptions.H5": "Title H5",
"components.Wysiwyg.selectOptions.H6": "Title H6",
"components.Wysiwyg.selectOptions.title": "Add a title",
"components.WysiwygBottomControls.charactersIndicators": "characters",
"components.WysiwygBottomControls.fullscreen": "Expand",
"components.WysiwygBottomControls.uploadFiles": "Drag & drop files, paste from the clipboard or {browse}.",
"components.WysiwygBottomControls.uploadFiles.browse": "select them",
"components.popUpWarning.button.cancel": "Cancel",
"components.popUpWarning.button.confirm": "Confirm",
"components.popUpWarning.message": "Are you sure you want to delete this?",
"components.popUpWarning.title": "Please confirm",
"notification.error": "An error occurred",
"notification.error.layout": "Couldn't retrieve the layout",
"request.error.model.unknown": "This model doesn't exist",
"app.utils.delete": "Delete"
}

View File

@ -1,11 +0,0 @@
import commonTrads from './commonTrads.json';
const formatMessagesWithPluginId = (pluginId, messages) => {
return Object.keys(messages).reduce((acc, current) => {
acc[`${pluginId}.${current}`] = messages[current];
return acc;
}, commonTrads);
};
export default formatMessagesWithPluginId;