{"id":19224786,"url":"https://github.com/flipkart-incubator/babel-plugin-pseudolocalize-react-native","last_synced_at":"2025-04-21T00:31:20.910Z","repository":{"id":43922167,"uuid":"408347403","full_name":"flipkart-incubator/babel-plugin-pseudolocalize-react-native","owner":"flipkart-incubator","description":"Babel plugin to transform React Native Text nodes with a custom language map for Pseudo-localization","archived":false,"fork":false,"pushed_at":"2021-09-20T08:22:33.000Z","size":37,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-04-28T21:41:46.170Z","etag":null,"topics":["babel","babel-plugin","devtools","pseudolocalization","react","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flipkart-incubator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-20T07:24:13.000Z","updated_at":"2022-07-08T06:55:10.000Z","dependencies_parsed_at":"2022-07-10T17:18:42.933Z","dependency_job_id":null,"html_url":"https://github.com/flipkart-incubator/babel-plugin-pseudolocalize-react-native","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipkart-incubator%2Fbabel-plugin-pseudolocalize-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipkart-incubator%2Fbabel-plugin-pseudolocalize-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipkart-incubator%2Fbabel-plugin-pseudolocalize-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipkart-incubator%2Fbabel-plugin-pseudolocalize-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flipkart-incubator","download_url":"https://codeload.github.com/flipkart-incubator/babel-plugin-pseudolocalize-react-native/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223842140,"owners_count":17212323,"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":["babel","babel-plugin","devtools","pseudolocalization","react","react-native"],"created_at":"2024-11-09T15:12:51.387Z","updated_at":"2024-11-09T15:12:52.140Z","avatar_url":"https://github.com/flipkart-incubator.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![npm](https://img.shields.io/npm/v/babel-plugin-pseudolocalize-react-native?style=plastic)\n\nA Babel Plugin to transform all Text nodes in React Native to their Pseudolocalized versions.\n\n## What is Pseudolocalization?\n\nPseudolocalization (or pseudo-localization) is a software testing method used for testing internationalization aspects of software. Instead of translating the text of the software into a foreign language, as in the process of localization, the textual elements of an application are replaced with an altered version of the original language.\n\nExample:\n\n```Account Settings``` becomes\t```[!!! Àççôûñţ Šéţţîñĝš !!!]```\n\nPseudo-localization allows engineering teams to continuously test their UI for localizability during their development sprints, because pseudo-localization becomes the default development language for the team.\n\n\nTo get an idea of what this plugin is for and what it tries to achieve please read the following docs - [Pseudo Localization FK](https://docs.google.com/presentation/d/1pBXuGIxwwIr-yA9U4ALgDM9yG4dZqF0-42eP6OhbgXg/edit?usp=sharing)\n\n\n[Inspiration](https://netflixtechblog.com/pseudo-localization-netflix-12fff76fbcbe)\n## Getting Started\n\n    npm install --save-dev babel-plugin-pseudolocalize-react-native\n\n## Usage\n\nAdd to `.babelrc` or `babel.config.js`\n\nNote: You might need to clear the metro cache if the changes do not reflect after adding to babel config. Use `react-native start --reset-cache` to reset the metro bundler cache\n\n# Plugin Options\n    \n- `extraLength`\n\nThe number by which you want to increase the length of string.\nE.g - If string is `Babel` of length `5` and `extraLength` value is `0.8` then the transformed string length will be `5 + 5 * 0.8 = 9` and the transformed string will be `Babel!!!!`.\n\nDefault: 0.8\n    \n    \n- `customLanguageMap`\n\nThe plugin provides a default language map inside `PhoneticConstants.js`. If you want to use your own Language Mapping for characters you can specify it using this option.\n\nDefault: `{\"a\":\"â̬\",\"b\":\"b̬̈\",\"c\":\"ĉ̬\",\"d\":\"d̬̈\",\"e\":\"ê̬\",\"f\":\"f̬̈\",\"g\":\"ĝ̤\",\"h\":\"ḧ̬\",\"i\":\"î̬\",\"j\":\"ĵ̤\",\"k\":\"k̬̈\",\"l\":\"l̬̈\",\"m\":\"m̬̂\",\"n\":\"n̬̂\",\"o\":\"ô̬\",\"p\":\"p̤̂\",\"q\":\"q̤̂\",\"r\":\"r̬̂\",\"s\":\"ŝ̬\",\"t\":\"ẗ̬\",\"u\":\"û̬\",\"v\":\"v̬̂\",\"w\":\"ŵ̬\",\"x\":\"x̬̂\",\"y\":\"ŷ̤\",\"z\":\"ẑ̬\",\"A\":\"Ä̬\",\"B\":\"B̬̈\",\"C\":\"C̬̈\",\"D\":\"D̬̈\",\"E\":\"Ë̬\",\"F\":\"F̬̈\",\"G\":\"G̬̈\",\"H\":\"Ḧ̬\",\"I\":\"Ï̬\",\"J\":\"J̬̈\",\"K\":\"K̬̈\",\"L\":\"L̬̈\",\"M\":\"M̬̈\",\"N\":\"N̬̈\",\"O\":\"Ö̬\",\"P\":\"P̬̈\",\"Q\":\"Q̬̈\",\"R\":\"R̬̈\",\"S\":\"S̬̈\",\"T\":\"T̬̈\",\"U\":\"Ü̬\",\"V\":\"V̬̈\",\"X\":\"Ẍ̬\",\"Y\":\"Ÿ̬\",\"Z\":\"Z̬̈\"}`\n\nSample\n\n![Screenshot_1623167875](https://user-images.githubusercontent.com/8079189/133972504-0986ce6f-f581-4f89-a2af-a8d9021ec15c.png)\n\n\n![Screenshot_1623167907](https://user-images.githubusercontent.com/8079189/133972542-47fd4f7a-b7c0-497c-8aa6-8b8d1f60089c.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflipkart-incubator%2Fbabel-plugin-pseudolocalize-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflipkart-incubator%2Fbabel-plugin-pseudolocalize-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflipkart-incubator%2Fbabel-plugin-pseudolocalize-react-native/lists"}