{"id":17164323,"url":"https://github.com/mfrachet/cypress-pseudo-localization","last_synced_at":"2025-03-24T16:58:59.897Z","repository":{"id":66323494,"uuid":"442818800","full_name":"mfrachet/cypress-pseudo-localization","owner":"mfrachet","description":"Switch all the text content to a pseudo localized variant of it","archived":false,"fork":false,"pushed_at":"2022-01-09T08:04:27.000Z","size":310,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T21:57:25.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfrachet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-29T15:47:36.000Z","updated_at":"2023-03-07T14:19:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"31e9c20b-788f-4d42-9a84-2b36efd998eb","html_url":"https://github.com/mfrachet/cypress-pseudo-localization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfrachet%2Fcypress-pseudo-localization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfrachet%2Fcypress-pseudo-localization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfrachet%2Fcypress-pseudo-localization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfrachet%2Fcypress-pseudo-localization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfrachet","download_url":"https://codeload.github.com/mfrachet/cypress-pseudo-localization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245315290,"owners_count":20595216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T22:51:35.934Z","updated_at":"2025-03-24T16:58:59.876Z","avatar_url":"https://github.com/mfrachet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A plugin that allows to transform regular strings into their [pseudo-localized](https://en.wikipedia.org/wiki/Pseudolocalization) variant. It's a wrapper around a small fork of https://github.com/tryggvigy/pseudo-localization.\n\nWe highly recommend using this plugin in addition to a [visual regression testing tool](https://docs.cypress.io/plugins/directory#Visual%20Testing).\n\n![A pseudo localized Cypress test showing the variant](./docs/image.png)\n\n## Installation\n\n```sh\n$ yarn add cypress-pseudo-localization\n\n# or\n\n$ npm i --save cypress-pseudo-localization\n```\n\n## In your code\n\nInside the `cypress/support/commands.js` file, add the following at the top:\n\n```js\nimport \"cypress-pseudo-localization\";\n```\n\nAnd then, in your cypress tests:\n\n```js\nbeforeEach(() =\u003e {\n  cy.visit(\"https://your-page-some-where.com/\");\n  cy.pseudoLocalize();\n});\n\n// Make sure to cleanup the localization after the tests\n// Needed, because there's a mutation observer used under the hood\nafterEach(cy.stopPseudoLocalize);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfrachet%2Fcypress-pseudo-localization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfrachet%2Fcypress-pseudo-localization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfrachet%2Fcypress-pseudo-localization/lists"}