Files
romm/CONTRIBUTING.md
Georges-Antoine Assi 5af2e231ec fix(i18n): placeholder parity check, one locale list, memory card plurals (#5375)
* fix(i18n): pluralize the memory card import message

Replace "save file(s)" with vue-i18n plural forms in en_US and en_GB.
The dialog already passes count, which selects the form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(i18n): check placeholder parity and fix es_ES placeholders

check_i18n_locales.py now fails when a translation's {placeholders}
differ from en_US. The check found 33 es_ES strings that dropped a
placeholder (usernames, error details, file paths) or used one the code
never passes, which renders empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(i18n): derive the language list from the locale folders

The language store kept its own list of locales next to the folders
that locales/index.ts already discovers, so a new locale had to be
registered in both. The store now lists availableLocales and keeps only
their display names, and a test fails when a folder has no name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(i18n): address Greptile review on #5375

Give memory-card-import-body plural forms in the locales whose
"(s)"-style text has a one/other split (de, es, fr, pt_BR, ro, sv, bg)
and in cs_CZ's four-form rule. Extract the placeholder comparison into a
function, cover it with stdlib unittest tests, and run them in i18n.yml.
The locale checker now skips __pycache__.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(i18n): type the locale checker for mypy

mypy.yml runs strict mypy over frontend/src/locales, which rejected the
untyped helpers and tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(i18n): humanizer pass on the i18n skill changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(i18n): handle two-form Czech plurals

The cs_CZ plural rule always returned a four-form index, so the 17
cs_CZ strings with only "one | other" forms showed the wrong form for
0 and 1 and threw "Unexpected return type in composer" for counts of
2 or more. Two-form strings now use the one/other split, which also
lets memory-card-import-body drop its duplicated segments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 09:11:39 -04:00

4.6 KiB

Contributing to RomM

Thank you for considering contributing to RomM! This document outlines some guidelines to help you get started with your contributions.

If you're looking to implement a large feature or make significant changes to the project, it's best to open an issue first AND join the Discord to discuss your ideas with the maintainers.

Code of Conduct

Please note that this project adheres to the Contributor Covenant code of conduct. By participating in this project, you are expected to uphold this code.

AI Assistance Notice

Important

If you are using any kind of AI assistance to contribute to RomM, it must be disclosed in the pull request.

If you are using any kind of AI assistance while contributing to RomM this must be disclosed in the pull request, along with the extent to which AI assistance was used (e.g. docs only vs. code generation). If PR responses are being generated by an AI, disclose that as well. As a small exception, trivial tab-completion doesn't need to be disclosed.

An example disclosure:

This PR was written primarily by Claude Code.

Or a more detailed disclosure:

I consulted ChatGPT to understand the codebase but the solution was fully authored manually by myself.

Failure to disclose this is rude to the human operators on the other end of the pull request, but it also makes it difficult to determine how much scrutiny to apply to the contribution.

In a perfect world, AI assistance would produce equal or higher quality work than any human. That isn't the world we live in today, and in most cases it's generating slop.

Please be respectful to maintainers and disclose AI assistance.

Contributing to the Docs

If you would like to contribute to the project's documentation, open a pull request against the docs repo. We welcome any contributions that help improve the documentation (new pages, updates, or corrections).

Adding Translations

If you would like to translate the project into another language, create a new folder under the frontend/src/locales directory, and follow the existing language files as a template. Add the language's name, written in that language, to LOCALE_NAMES in frontend/src/stores/language.ts. Once you've created the new language file, open a pull request to add it to the project.

How to Contribute Code

  1. Fork the repository.
  2. Clone your forked repository: git clone https://github.com/your-username/romm.git
  3. Checkout the master branch: git checkout master
  4. Follow the steps in the developer setup guide
  5. Create a new branch for your feature/fix: git checkout -b feature-or-fix-name
  6. Make your changes and commit them with descriptive commit messages: git commit -am 'Add feature XYZ'
  7. Push your changes to your fork: git push origin feature-or-fix-name
  8. Open a pull request to the master branch of the original repository.

Pull Request Guidelines

  • Make sure your code follows the project's coding standards.
  • Test your changes locally before opening a pull request.
  • Update the documentation if necessary.
  • Ensure all existing tests pass, and add new tests for new functionality.
  • Use clear and descriptive titles and descriptions for your pull requests.
  • Write the PR title as a Conventional Commit, such as fix(scan): keep partial bytes out of the fallback hash. Allowed types are feat, fix, perf, refactor, revert, docs, style, test, build, ci and chore, and CI checks the title.

Code Style

Follow the existing code style used throughout the project. If working with VSCode or a similar editor, consider installing these extensions:

Issue Reporting

If you encounter any bugs or have suggestions for improvements, please create an issue on GitHub. Provide as much detail as possible, including steps to reproduce the issue if applicable.

Licensing

By contributing to RomM, you agree that your contributions will be licensed under the project's LICENSE.


Thank you for contributing to RomM! Your help is greatly appreciated.