{"id":21997664,"url":"https://github.com/osfunapps/os_translator_xlsx-py","last_synced_at":"2026-05-03T09:31:40.122Z","repository":{"id":57449787,"uuid":"243530969","full_name":"osfunapps/os_translator_xlsx-py","owner":"osfunapps","description":"This module aim is to translate a string to a desired languages and save the output in a nice excel file.","archived":false,"fork":false,"pushed_at":"2021-02-07T14:10:08.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T20:22:09.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/osfunapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-27T13:51:41.000Z","updated_at":"2021-02-07T14:10:10.000Z","dependencies_parsed_at":"2022-09-26T17:31:09.631Z","dependency_job_id":null,"html_url":"https://github.com/osfunapps/os_translator_xlsx-py","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/osfunapps%2Fos_translator_xlsx-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_translator_xlsx-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_translator_xlsx-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osfunapps%2Fos_translator_xlsx-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osfunapps","download_url":"https://codeload.github.com/osfunapps/os_translator_xlsx-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245056902,"owners_count":20553854,"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-11-29T22:17:36.946Z","updated_at":"2026-05-03T09:31:40.092Z","avatar_url":"https://github.com/osfunapps.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n------------\n\nThis module aim is to translate a string to a desired languages and save the output in a nice excel file\n\n## Installation\nInstall via pip:\n\n    pip install os-translator-xlsx\n\n## Usage       \n```python\nimport os_translator_xlsx.to_xlsx_translator as excel_translator\n\nexcel_translator.translate_to_excel('output/path/file.xlsx',\n                                   '/path/to/service/account/.json',\n                                   'firebaseprojectId',\n                                   'en-US',\n                                   [\"First sentence\", \"Second setntence\"],\n                                   ['zu', 'fr'])\n```                                       \n## Method signatures\n```python\ndef translate_to_excel(excel_file_path,\n                       service_account_json_path,\n                       project_id,\n                       language_initials_src,\n                       text_list,\n                       language_initials_list):\n                       \n    \"\"\"Will translate a text to a given languages and save the results in a nice excel file.\n\n    Parameters:\n    :param excel_file_path: the path to the excel file with all of the translations\n    :param service_account_json_path: the path to your google translate api json key. Download from your firebase's project's settings\n    :param project_id: your project id (fetch from your api console project's name: https://console.cloud.google.com/?_ga=2.55756075.1423406147.1582784765-1154152733.1582784765)\n    :param language_initials_src: the source language\n    :param text_list: a list containing all of the texts to translate\n    :param language_initials_list: the initials of the languages you want to translate to\n\n    NOTICE:\n        If there are substrings you don't want to translate, write KEEP before them. Example: \"The boy looks KEEPWord\".\n        Also, you can use this bank of languages:\n        ['en-GB', 'af', 'am', 'ar', 'hy-AM', 'az-AZ', 'bn-BD', 'eu-ES', 'be', 'bg', 'my-MM', 'ca', 'zh-HK', 'zh-CN', 'zh-TW', 'hr', 'cs-CZ', 'da-DK', 'nl-NL', 'en-AU', 'en-IN', 'en-SG', 'en-ZA', 'en-CA', 'en-US', 'et', 'fil', 'fi-FI', 'fr-FR', 'fr-CA', 'gl-ES', 'ka-GE', 'de-DE', 'el-GR', 'hi-IN', 'hu-HU', 'is-IS', 'id', 'it-IT', 'ja-JP', 'kn-IN', 'km-KH', 'ko-KR', 'ky-KG', 'lo-LA', 'lv', 'lt', 'mk-MK', 'ms', 'ml-IN', 'mr-IN', 'mn-MN', 'ne-NP', 'no-NO', 'fa', 'pl-PL', 'pt-BR',\n                       'pt-PT', 'ro', 'ro', 'ru-RU', 'sr', 'si-LK', 'sk', 'sl', 'es-419', 'es-ES', 'es-US', 'sw', 'sv-SE', 'ta-IN', 'te-IN', 'th', 'tr-TR', 'uk', 'vi', 'zu']\n    \"\"\"\n```\n## Licence\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfunapps%2Fos_translator_xlsx-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosfunapps%2Fos_translator_xlsx-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosfunapps%2Fos_translator_xlsx-py/lists"}