Skip to content

[FEATURE] Extend Maithili exception translations (ZeroDivisionError, IndentationError, ImportError, ...) #37

Description

@alphacrack

translate_exception_to_maithili (maithili_dsl/transpiler/linter.py:14) translates only 7 exception types (SyntaxError, NameError, TypeError, ValueError, AttributeError, IndexError, KeyError). Common learner-facing exceptions fall through to the generic English-ish fallback.

Add translations for at least:

  • ZeroDivisionError (dividing by ०)
  • IndentationError
  • ImportError / ModuleNotFoundError
  • RecursionError
  • StopIteration
  • OverflowError
  • FileNotFoundError

Steps: extend the translations dict; one test per new entry in tests/test_linter.py (raise the exception, assert the Maithili text is returned).

Good first issue — pure data + tests, and a perfect task for Maithili speakers: accurate, natural phrasing matters more than code here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low priority: nice to havearea:lintermaithili_dsl/transpiler/linter.pyenhancementNew feature or requestgood first issueGood for newcomerstranslationMaithili / Devanagari documentation and message translation

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions