{"id":15304819,"url":"https://github.com/asirihewage/dall-e-intl","last_synced_at":"2026-01-07T13:03:04.482Z","repository":{"id":65832045,"uuid":"600928103","full_name":"asirihewage/dall-e-intl","owner":"asirihewage","description":"Enhanced Internationalization module for DALL·E - NodeJS","archived":false,"fork":false,"pushed_at":"2023-02-13T15:43:38.000Z","size":3792,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-27T15:40:03.308Z","etag":null,"topics":["aiimage","dall-e","dall-e-api","digitalart","image","nodejs","npm","npm-package","openai"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/dall-e-intl","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/asirihewage.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":"SECURITY.md","support":"SUPPORTED_LANGUAGES.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-13T01:39:16.000Z","updated_at":"2023-03-04T23:46:23.000Z","dependencies_parsed_at":"2023-02-28T23:30:26.852Z","dependency_job_id":null,"html_url":"https://github.com/asirihewage/dall-e-intl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/asirihewage/dall-e-intl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2Fdall-e-intl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2Fdall-e-intl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2Fdall-e-intl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2Fdall-e-intl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asirihewage","download_url":"https://codeload.github.com/asirihewage/dall-e-intl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asirihewage%2Fdall-e-intl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28235502,"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","status":"online","status_checked_at":"2026-01-07T02:00:05.975Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aiimage","dall-e","dall-e-api","digitalart","image","nodejs","npm","npm-package","openai"],"created_at":"2024-10-01T07:58:10.174Z","updated_at":"2026-01-07T13:03:04.453Z","avatar_url":"https://github.com/asirihewage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DALL.E internationalization\n![Version](https://img.shields.io/github/package-json/v/asirihewage/dall-e-intl)\n![Package Size](https://img.shields.io/github/languages/code-size/asirihewage/dall-e-intl)\n### Enhanced DALL.E Wrapper for Internationalization - NodeJS\nThis NodeJS module acts as a wrapper for DALL.E API and will help you to use DALL.E in your own language.\n![Logo](res/logo.jpg)\n\n## Installation\n\nInstall dall-e-intl via npm : https://www.npmjs.com/package/dall-e-intl\n\n```bash\n  npm i dall-e-intl\n```\n\n## Usage/Examples\nFirst, you have to obtain your API key from OPENAI, then you can use it here.\n```javascript\nimport DallEIntl from 'dall-e-intl';\nimport dotenv from \"dotenv\";\ndotenv.config();\n\nconst text = \"සුදාම්මිට ඔනෙ කියපු ගිනි පිඹින මකරෙක්, ස්වීට් වෙන්න ඔනෙ, හැන්ඩ්සම් වෙන්නත් ඔනෙ, සුදුඅම්මි ළගම ඉන්නත් ඔනෙ\"\nconst openAiKey = process.env.openAiKey\nconst lang = 'si';\nconst opts = {\n    model: \"image-alpha-001\",\n    prompt: text,\n    num_images: 1,\n    size: \"1024x1024\",\n    response_format: \"url\",\n};\n\n\nDallEIntl(text, DALL_E_API_KEY, opts, lang).then((res) =\u003e {\n    console.log(res);\n}).catch((er)=\u003e {\n    console.log(er);\n});\n```\n\n## API\ntext - Type: string (The text to be translated)\n\nopenAiKey - Type: string (API Key obtained from OpenAI Developer Account)\n\nopts - Type: object (OpenAI Language Model and hyperparameters)\n\nlang - Type: string ( Must be `auto` or one of the codes (not case sensitive) contained in [SUPPORTED_LANGUAGES.md](https://github.com/asirihewage/dall-e-intl/blob/main/SUPPORTED_LANGUAGES.md).)\n\n## Features\n\n- Use DALL.E API in your own language\n- Ability to customize the DALL.E image generation model\n- Supports more than 50 languages\n\n## Language Support\nSupported language codes contained in [SUPPORTED_LANGUAGES.md](https://github.com/asirihewage/dall-e-intl/blob/main/SUPPORTED_LANGUAGES.md)\n\n## Demo\n```shell\nnpm run demo\n```\nPrompt in Sinhalese language: \"සුදාම්මිට ඔනෙ කියපු ගිනි පිඹින මකරෙක්, ස්වීට් වෙන්න ඔනෙ, හැන්ඩ්සම් වෙන්නත් ඔනෙ, සුදුඅම්මි ළගම ඉන්නත් ඔනෙ\"\n![Demo](res/demo.png)\n\n## Authors\n\n- [@asirihewage](https://github.com/asirihewage)\n\n## Contributions\n\n- Issues and feature updates are welcome.\n\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasirihewage%2Fdall-e-intl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasirihewage%2Fdall-e-intl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasirihewage%2Fdall-e-intl/lists"}