{"id":21202894,"url":"https://github.com/pittersnider/ji18n","last_synced_at":"2025-03-14T22:41:28.956Z","repository":{"id":57280750,"uuid":"121864320","full_name":"pittersnider/JI18N","owner":"pittersnider","description":"Internationalize JSON Objects","archived":false,"fork":false,"pushed_at":"2018-02-17T16:28:40.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-29T22:14:15.328Z","etag":null,"topics":["i18n","internationalization","json-api","nodejs-library","nodejs-modules","npm-module"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pittersnider.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":"2018-02-17T15:03:13.000Z","updated_at":"2018-02-17T16:46:44.000Z","dependencies_parsed_at":"2022-09-12T20:23:05.938Z","dependency_job_id":null,"html_url":"https://github.com/pittersnider/JI18N","commit_stats":null,"previous_names":["wernovox/ji18n"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittersnider%2FJI18N","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittersnider%2FJI18N/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittersnider%2FJI18N/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittersnider%2FJI18N/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pittersnider","download_url":"https://codeload.github.com/pittersnider/JI18N/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658133,"owners_count":20326462,"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":["i18n","internationalization","json-api","nodejs-library","nodejs-modules","npm-module"],"created_at":"2024-11-20T20:19:25.376Z","updated_at":"2025-03-14T22:41:28.536Z","avatar_url":"https://github.com/pittersnider.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JI18N\nInternationalize JSON Objects. This software helps you to convert keys inside JSON Schema. It is util if you have, in an example, multi-language support inside JSON. See above for more examples.\n\nInput:\n```json\n{\n    \"quotes\": [{\n        \"$\": {\n            \"en\": \"This is an english and popular quote\",\n            \"pt\": \"Esta é uma frase portuguesa e popular\"\n        }\n    }]\n}\n```\n\nAPI:\n```javascript\n'use strict'\nconst ji18n = require('ji18n');\n\nconst input = {\n    \"quotes\": [{\n        \"$\": {\n            \"en\": \"This is an english and popular quote\",\n            \"pt\": \"Esta é uma frase portuguesa e popular\"\n        }\n    }]\n}\n\nji18n(input, 'pt' /*, '$ or another key'*/);\n// 'input' now is { quotes: ['Esta é uma frase portuguesa e popular'] }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpittersnider%2Fji18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpittersnider%2Fji18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpittersnider%2Fji18n/lists"}