Skip to main content

A tool to facilitate the translation of GitHub README.md files using NLLB-200.

Project description

Documentation Support in Multiple Languages

About
English Link to Head of Docs
Spanish Link to Head of Docs
French Link to Head of Docs
German Link to Head of Docs
Italian Link to Head of Docs
Portuguese Link to Head of Docs

Documentation Support in Multiple Languages

About
English Link to Head of Docs
Spanish Link to Head of Docs

Readme Rosetta

Readme Rosetta is a tool designed to facilitate the translation of documentation, with a current focus on GitHub README.md files and Python libraries. It is fully compatible with GitBook and utilizes state-of-the-art Transformers models for high-quality translations.

Features

  • Transformers Powered: Uses NLLB-200 via the transformers library for accurate multilingual translations.
  • GitBook Compatible: Generates documentation that can be easily imported and hosted on GitBook.
  • Bulk Translation: Support for translating into 30+ languages in a single pass.
  • Sphinx Integration: Automatically handles Sphinx i18n workflows.
  • Universal Documentation: Makes Python libraries and READMEs accessible world-wide.

Getting Started

Installation

To install Readme Rosetta, follow these steps:

pip install readme-rosetta

Usage

readme-rosetta translate --input <path_to_input_file> --output <path_to_output_file> --target <target_language>

--input: Path to the input README.md file. --output: Path to the output translated file. --target: Target language for translation.

Documentation

Comprehensive documentation is available in the docs directory. It is built using Sphinx and supports multiple languages.

Building Documentation

To build the HTML documentation in English:

cd docs
pip install -r requirements.txt
make html

Multilingual Support (i18n)

The documentation is prepared for internationalization. To update or build translations for specific languages (e.g., Spanish):

cd docs
# Update translation catalogs
make translate-update LANGS=es

# Build translated HTML
make translate-build LANGS=es

You can build all supported languages at once by running make translate-build without the LANGS argument.

Supported Documentation Languages

The documentation setup includes optimized search support for:

  • Built-in Support: English, Arabic, Danish, Dutch, Finnish, French, German, Hungarian, Italian, Japanese (via janome), Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish.
  • Additional Support: Chinese (via jieba), Hindi.

The translated documentation will be available at docs/build/html/<language>/.

GitBook Integration

Readme Rosetta is designed to work seamlessly with GitBook. Since it generates standard Markdown, you can point GitBook to your repository or the generated README.md to have a multi-language documentation site in minutes.

Supported Languages (30+)

The following languages are supported and tested:

  • en - English
  • es - Spanish
  • fr - French
  • de - German
  • it - Italian
  • pt - Portuguese
  • ru - Russian
  • zh - Chinese
  • ja - Japanese
  • ar - Arabic
  • hi - Hindi
  • bn - Bengali
  • id - Indonesian
  • tr - Turkish
  • vi - Vietnamese
  • pl - Polish
  • nl - Dutch
  • sv - Swedish
  • no - Norwegian
  • da - Danish
  • fi - Finnish
  • el - Greek
  • cs - Czech
  • hu - Hungarian
  • ro - Romanian
  • uk - Ukrainian
  • th - Thai
  • ko - Korean
  • he - Hebrew
  • fa - Persian
  • ms - Malay

Translator Backend

Readme Rosetta now defaults to using the NLLB-200 model via the transformers library (facebook/nllb-200-distilled-600M).

To use this:

  1. Ensure the required packages are installed:
    pip install transformers torch sentencepiece protobuf
    
  2. The model will be automatically downloaded from Hugging Face on first run.

Contributing

We welcome contributions! If you'd like to contribute, please see our contributing guidelines.

Bug Reporting and Support

If you encounter any issues or need support, please open an issue.

License

This project is licensed under the MIT License.

Readme Rosetta Spanish

Readme Rosetta is a tool designed to facilitate the translation of documentation, with a current focus on GitHub README.md files and Python libraries. It is fully compatible with GitBook and utilizes state-of-the-art Transformers models for high-quality translations.

Features

  • Transformers Powered: Uses NLLB-200 via the transformers library for accurate multilingual translations.
  • GitBook Compatible: Generates documentation that can be easily imported and hosted on GitBook.
  • Bulk Translation: Support for translating into 30+ languages in a single pass.
  • Sphinx Integration: Automatically handles Sphinx i18n workflows.
  • Universal Documentation: Makes Python libraries and READMEs accessible world-wide.

Getting Started

Installation

To install Readme Rosetta, follow these steps:

pip install readme-rosetta

Usage

readme-rosetta translate --input <path_to_input_file> --output <path_to_output_file> --target <target_language>

--input: Path to the input README.md file. --output: Path to the output translated file. --target: Target language for translation.

Documentation

Comprehensive documentation is available in the docs directory. It is built using Sphinx and supports multiple languages.

Building Documentation

To build the HTML documentation in English:

cd docs
pip install -r requirements.txt
make html

Multilingual Support (i18n)

The documentation is prepared for internationalization. To update or build translations for specific languages (e.g., Spanish):

cd docs
# Update translation catalogs
make translate-update LANGS=es

# Build translated HTML
make translate-build LANGS=es

You can build all supported languages at once by running make translate-build without the LANGS argument.

Supported Documentation Languages

The documentation setup includes optimized search support for:

  • Built-in Support: English, Arabic, Danish, Dutch, Finnish, French, German, Hungarian, Italian, Japanese (via janome), Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish.
  • Additional Support: Chinese (via jieba), Hindi.

The translated documentation will be available at docs/build/html/<language>/.

GitBook Integration

Readme Rosetta is designed to work seamlessly with GitBook. Since it generates standard Markdown, you can point GitBook to your repository or the generated README.md to have a multi-language documentation site in minutes.

Supported Languages (30+)

The following languages are supported and tested:

  • en - English
  • es - Spanish
  • fr - French
  • de - German
  • it - Italian
  • pt - Portuguese
  • ru - Russian
  • zh - Chinese
  • ja - Japanese
  • ar - Arabic
  • hi - Hindi
  • bn - Bengali
  • id - Indonesian
  • tr - Turkish
  • vi - Vietnamese
  • pl - Polish
  • nl - Dutch
  • sv - Swedish
  • no - Norwegian
  • da - Danish
  • fi - Finnish
  • el - Greek
  • cs - Czech
  • hu - Hungarian
  • ro - Romanian
  • uk - Ukrainian
  • th - Thai
  • ko - Korean
  • he - Hebrew
  • fa - Persian
  • ms - Malay

Translator Backend

Readme Rosetta now defaults to using the NLLB-200 model via the transformers library (facebook/nllb-200-distilled-600M).

To use this:

  1. Ensure the required packages are installed:
    pip install transformers torch sentencepiece protobuf
    
  2. The model will be automatically downloaded from Hugging Face on first run.

Contributing

We welcome contributions! If you'd like to contribute, please see our contributing guidelines.

Bug Reporting and Support

If you encounter any issues or need support, please open an issue.

License

This project is licensed under the MIT License.

Readme Rosetta French

Readme Rosetta is a tool designed to facilitate the translation of documentation, with a current focus on GitHub README.md files and Python libraries. It is fully compatible with GitBook and utilizes state-of-the-art Transformers models for high-quality translations.

Features

  • Transformers Powered: Uses NLLB-200 via the transformers library for accurate multilingual translations.
  • GitBook Compatible: Generates documentation that can be easily imported and hosted on GitBook.
  • Bulk Translation: Support for translating into 30+ languages in a single pass.
  • Sphinx Integration: Automatically handles Sphinx i18n workflows.
  • Universal Documentation: Makes Python libraries and READMEs accessible world-wide.

Getting Started

Installation

To install Readme Rosetta, follow these steps:

pip install readme-rosetta

Usage

Sphinx Documentation Setup & Translation

To automatically setup Sphinx, generate API documentation, and translate all .po files for multiple languages:

readme-rosetta . --sphinx --langs es fr hi de it ja ko ru

Bulk README Translation

To translate your README_SOURCE.md into multiple languages and append them to README.md with a language selector table:

readme-rosetta README_SOURCE.md --langs es fr hi de it ja

Legacy / Single Translation

readme-rosetta en es README_SOURCE.md

Documentation

Comprehensive documentation is available in the docs directory. It is built using Sphinx and supports multiple languages.

Building Documentation

To build the HTML documentation in English:

cd docs
pip install -r requirements.txt
make html

Multilingual Support (i18n)

The documentation is prepared for internationalization. To update or build translations for specific languages (e.g., Spanish):

cd docs
# Update translation catalogs
make translate-update LANGS=es

# Build translated HTML
make translate-build LANGS=es

You can build all supported languages at once by running make translate-build without the LANGS argument.

Supported Documentation Languages

The documentation setup includes optimized search support for:

  • Built-in Support: English, Arabic, Danish, Dutch, Finnish, French, German, Hungarian, Italian, Japanese (via janome), Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish.
  • Additional Support: Chinese (via jieba), Hindi.

The translated documentation will be available at docs/build/html/<language>/.

GitBook Integration

Readme Rosetta is designed to work seamlessly with GitBook. Since it generates standard Markdown, you can point GitBook to your repository or the generated README.md to have a multi-language documentation site in minutes.

Supported Languages (30+)

The following languages are supported and tested:

  • en - English
  • es - Spanish
  • fr - French
  • de - German
  • it - Italian
  • pt - Portuguese
  • ru - Russian
  • zh - Chinese
  • ja - Japanese
  • ar - Arabic
  • hi - Hindi
  • bn - Bengali
  • id - Indonesian
  • tr - Turkish
  • vi - Vietnamese
  • pl - Polish
  • nl - Dutch
  • sv - Swedish
  • no - Norwegian
  • da - Danish
  • fi - Finnish
  • el - Greek
  • cs - Czech
  • hu - Hungarian
  • ro - Romanian
  • uk - Ukrainian
  • th - Thai
  • ko - Korean
  • he - Hebrew
  • fa - Persian
  • ms - Malay

Translator Backend

Readme Rosetta now defaults to using the NLLB-200 model via the transformers library (facebook/nllb-200-distilled-600M).

To use this:

  1. Ensure the required packages are installed:
    pip install transformers torch sentencepiece protobuf
    
  2. The model will be automatically downloaded from Hugging Face on first run.

Contributing

We welcome contributions! If you'd like to contribute, please see our contributing guidelines.

Bug Reporting and Support

If you encounter any issues or need support, please open an issue.

License

This project is licensed under the MIT License.

Readme Rosetta German

Readme Rosetta is a tool designed to facilitate the translation of documentation, with a current focus on GitHub README.md files and Python libraries. It is fully compatible with GitBook and utilizes state-of-the-art Transformers models for high-quality translations.

Features

  • Transformers Powered: Uses NLLB-200 via the transformers library for accurate multilingual translations.
  • GitBook Compatible: Generates documentation that can be easily imported and hosted on GitBook.
  • Bulk Translation: Support for translating into 30+ languages in a single pass.
  • Sphinx Integration: Automatically handles Sphinx i18n workflows.
  • Universal Documentation: Makes Python libraries and READMEs accessible world-wide.

Getting Started

Installation

To install Readme Rosetta, follow these steps:

pip install readme-rosetta

Usage

Sphinx Documentation Setup & Translation

To automatically setup Sphinx, generate API documentation, and translate all .po files for multiple languages:

readme-rosetta . --sphinx --langs es fr hi de it ja ko ru

Bulk README Translation

To translate your README_SOURCE.md into multiple languages and append them to README.md with a language selector table:

readme-rosetta README_SOURCE.md --langs es fr hi de it ja

Legacy / Single Translation

readme-rosetta en es README_SOURCE.md

Documentation

Comprehensive documentation is available in the docs directory. It is built using Sphinx and supports multiple languages.

Building Documentation

To build the HTML documentation in English:

cd docs
pip install -r requirements.txt
make html

Multilingual Support (i18n)

The documentation is prepared for internationalization. To update or build translations for specific languages (e.g., Spanish):

cd docs
# Update translation catalogs
make translate-update LANGS=es

# Build translated HTML
make translate-build LANGS=es

You can build all supported languages at once by running make translate-build without the LANGS argument.

Supported Documentation Languages

The documentation setup includes optimized search support for:

  • Built-in Support: English, Arabic, Danish, Dutch, Finnish, French, German, Hungarian, Italian, Japanese (via janome), Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish.
  • Additional Support: Chinese (via jieba), Hindi.

The translated documentation will be available at docs/build/html/<language>/.

GitBook Integration

Readme Rosetta is designed to work seamlessly with GitBook. Since it generates standard Markdown, you can point GitBook to your repository or the generated README.md to have a multi-language documentation site in minutes.

Supported Languages (30+)

The following languages are supported and tested:

  • en - English
  • es - Spanish
  • fr - French
  • de - German
  • it - Italian
  • pt - Portuguese
  • ru - Russian
  • zh - Chinese
  • ja - Japanese
  • ar - Arabic
  • hi - Hindi
  • bn - Bengali
  • id - Indonesian
  • tr - Turkish
  • vi - Vietnamese
  • pl - Polish
  • nl - Dutch
  • sv - Swedish
  • no - Norwegian
  • da - Danish
  • fi - Finnish
  • el - Greek
  • cs - Czech
  • hu - Hungarian
  • ro - Romanian
  • uk - Ukrainian
  • th - Thai
  • ko - Korean
  • he - Hebrew
  • fa - Persian
  • ms - Malay

Translator Backend

Readme Rosetta now defaults to using the NLLB-200 model via the transformers library (facebook/nllb-200-distilled-600M).

To use this:

  1. Ensure the required packages are installed:
    pip install transformers torch sentencepiece protobuf
    
  2. The model will be automatically downloaded from Hugging Face on first run.

Contributing

We welcome contributions! If you'd like to contribute, please see our contributing guidelines.

Bug Reporting and Support

If you encounter any issues or need support, please open an issue.

License

This project is licensed under the MIT License.

Readme Rosetta Italian

Readme Rosetta is a tool designed to facilitate the translation of documentation, with a current focus on GitHub README.md files and Python libraries. It is fully compatible with GitBook and utilizes state-of-the-art Transformers models for high-quality translations.

Features

  • Transformers Powered: Uses NLLB-200 via the transformers library for accurate multilingual translations.
  • GitBook Compatible: Generates documentation that can be easily imported and hosted on GitBook.
  • Bulk Translation: Support for translating into 30+ languages in a single pass.
  • Sphinx Integration: Automatically handles Sphinx i18n workflows.
  • Universal Documentation: Makes Python libraries and READMEs accessible world-wide.

Getting Started

Installation

To install Readme Rosetta, follow these steps:

pip install readme-rosetta

Usage

Sphinx Documentation Setup & Translation

To automatically setup Sphinx, generate API documentation, and translate all .po files for multiple languages:

readme-rosetta . --sphinx --langs es fr hi de it ja ko ru

Bulk README Translation

To translate your README_SOURCE.md into multiple languages and append them to README.md with a language selector table:

readme-rosetta README_SOURCE.md --langs es fr hi de it ja

Legacy / Single Translation

readme-rosetta en es README_SOURCE.md

Documentation

Comprehensive documentation is available in the docs directory. It is built using Sphinx and supports multiple languages.

Building Documentation

To build the HTML documentation in English:

cd docs
pip install -r requirements.txt
make html

Multilingual Support (i18n)

The documentation is prepared for internationalization. To update or build translations for specific languages (e.g., Spanish):

cd docs
# Update translation catalogs
make translate-update LANGS=es

# Build translated HTML
make translate-build LANGS=es

You can build all supported languages at once by running make translate-build without the LANGS argument.

Supported Documentation Languages

The documentation setup includes optimized search support for:

  • Built-in Support: English, Arabic, Danish, Dutch, Finnish, French, German, Hungarian, Italian, Japanese (via janome), Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish.
  • Additional Support: Chinese (via jieba), Hindi.

The translated documentation will be available at docs/build/html/<language>/.

GitBook Integration

Readme Rosetta is designed to work seamlessly with GitBook. Since it generates standard Markdown, you can point GitBook to your repository or the generated README.md to have a multi-language documentation site in minutes.

Supported Languages (30+)

The following languages are supported and tested:

  • en - English
  • es - Spanish
  • fr - French
  • de - German
  • it - Italian
  • pt - Portuguese
  • ru - Russian
  • zh - Chinese
  • ja - Japanese
  • ar - Arabic
  • hi - Hindi
  • bn - Bengali
  • id - Indonesian
  • tr - Turkish
  • vi - Vietnamese
  • pl - Polish
  • nl - Dutch
  • sv - Swedish
  • no - Norwegian
  • da - Danish
  • fi - Finnish
  • el - Greek
  • cs - Czech
  • hu - Hungarian
  • ro - Romanian
  • uk - Ukrainian
  • th - Thai
  • ko - Korean
  • he - Hebrew
  • fa - Persian
  • ms - Malay

Translator Backend

Readme Rosetta now defaults to using the NLLB-200 model via the transformers library (facebook/nllb-200-distilled-600M).

To use this:

  1. Ensure the required packages are installed:
    pip install transformers torch sentencepiece protobuf
    
  2. The model will be automatically downloaded from Hugging Face on first run.

Contributing

We welcome contributions! If you'd like to contribute, please see our contributing guidelines.

Bug Reporting and Support

If you encounter any issues or need support, please open an issue.

License

This project is licensed under the MIT License.

Readme Rosetta Portuguese

Readme Rosetta is a tool designed to facilitate the translation of documentation, with a current focus on GitHub README.md files and Python libraries. It is fully compatible with GitBook and utilizes state-of-the-art Transformers models for high-quality translations.

Features

  • Transformers Powered: Uses NLLB-200 via the transformers library for accurate multilingual translations.
  • GitBook Compatible: Generates documentation that can be easily imported and hosted on GitBook.
  • Bulk Translation: Support for translating into 30+ languages in a single pass.
  • Sphinx Integration: Automatically handles Sphinx i18n workflows.
  • Universal Documentation: Makes Python libraries and READMEs accessible world-wide.

Getting Started

Installation

To install Readme Rosetta, follow these steps:

pip install readme-rosetta

Usage

Sphinx Documentation Setup & Translation

To automatically setup Sphinx, generate API documentation, and translate all .po files for multiple languages:

readme-rosetta . --sphinx --langs es fr hi de it ja ko ru

Bulk README Translation

To translate your README_SOURCE.md into multiple languages and append them to README.md with a language selector table:

readme-rosetta README_SOURCE.md --langs es fr hi de it ja

Legacy / Single Translation

readme-rosetta en es README_SOURCE.md

Documentation

Comprehensive documentation is available in the docs directory. It is built using Sphinx and supports multiple languages.

Building Documentation

To build the HTML documentation in English:

cd docs
pip install -r requirements.txt
make html

Multilingual Support (i18n)

The documentation is prepared for internationalization. To update or build translations for specific languages (e.g., Spanish):

cd docs
# Update translation catalogs
make translate-update LANGS=es

# Build translated HTML
make translate-build LANGS=es

You can build all supported languages at once by running make translate-build without the LANGS argument.

Supported Documentation Languages

The documentation setup includes optimized search support for:

  • Built-in Support: English, Arabic, Danish, Dutch, Finnish, French, German, Hungarian, Italian, Japanese (via janome), Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish.
  • Additional Support: Chinese (via jieba), Hindi.

The translated documentation will be available at docs/build/html/<language>/.

GitBook Integration

Readme Rosetta is designed to work seamlessly with GitBook. Since it generates standard Markdown, you can point GitBook to your repository or the generated README.md to have a multi-language documentation site in minutes.

Supported Languages (30+)

The following languages are supported and tested:

  • en - English
  • es - Spanish
  • fr - French
  • de - German
  • it - Italian
  • pt - Portuguese
  • ru - Russian
  • zh - Chinese
  • ja - Japanese
  • ar - Arabic
  • hi - Hindi
  • bn - Bengali
  • id - Indonesian
  • tr - Turkish
  • vi - Vietnamese
  • pl - Polish
  • nl - Dutch
  • sv - Swedish
  • no - Norwegian
  • da - Danish
  • fi - Finnish
  • el - Greek
  • cs - Czech
  • hu - Hungarian
  • ro - Romanian
  • uk - Ukrainian
  • th - Thai
  • ko - Korean
  • he - Hebrew
  • fa - Persian
  • ms - Malay

Translator Backend

Readme Rosetta now defaults to using the NLLB-200 model via the transformers library (facebook/nllb-200-distilled-600M).

To use this:

  1. Ensure the required packages are installed:
    pip install transformers torch sentencepiece protobuf
    
  2. The model will be automatically downloaded from Hugging Face on first run.

Contributing

We welcome contributions! If you'd like to contribute, please see our contributing guidelines.

Bug Reporting and Support

If you encounter any issues or need support, please open an issue.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

readme_rosetta-0.1.2.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

readme_rosetta-0.1.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file readme_rosetta-0.1.2.tar.gz.

File metadata

  • Download URL: readme_rosetta-0.1.2.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for readme_rosetta-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d529a36dd3466a81b633273f30d19534941cf4dd799d2f2581b73c886ddb722e
MD5 46faf6e82684e2903b2d13a9fce114a2
BLAKE2b-256 08f12a94bee60fea5b046d73efed857ebf7648c5b434b82f056110118a7610ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_rosetta-0.1.2.tar.gz:

Publisher: publish.yml on juleshenry/readme_rosetta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readme_rosetta-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: readme_rosetta-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for readme_rosetta-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 751d5d80b48676f34919c3c38d5b0e25495acecd1c27ec5a418d896bc1257b5b
MD5 2f740dd6f90ea1c160fe52bb0c5bf140
BLAKE2b-256 cdaabac9e17eda44ce51279d2dbf4e469137f97539d525bc84ace4ce48342b09

See more details on using hashes here.

Provenance

The following attestation bundles were made for readme_rosetta-0.1.2-py3-none-any.whl:

Publisher: publish.yml on juleshenry/readme_rosetta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page