• 
      

    Remove gettext incursion into Ink.

    Review Request #15218 — Created Aug. 6, 2026 and updated

    Information

    Ink
    master

    Reviewers

    The dialogUtils file had some tagged templates sneak in that use
    babel-plugin-django-gettext. We don't actually ship any localization for
    Ink, and this ended up with gettext() calls in the emitted JS. Because
    we don't want to deal with i18n directly in Ink (at least for now), we
    instead just make it possible to pass in localized strings for whatever
    needs it.

    This change removes the tagged templates, the babel plugin config, and
    some stuff in the storybook infrastructure to stub out those methods.
    This also fixes one place in dialogUtils.ts where we had a hardcoded
    string that was not able to be passed in.

    • Built a package.
    • Ran unit tests.
    • Audited all our strings for other places where we might use the tagged
      templates.
    • Audited strings to ensure that it was possible to externally override
      things where necessary.
    Summary ID
    Remove gettext incursion into Ink.
    The dialogUtils file had some tagged templates sneak in that use babel-plugin-django-gettext. We don't actually ship any localization for Ink, and this ended up with `gettext()` calls in the emitted JS. Because we don't want to deal with i18n directly in Ink (at least for now), we instead just make it possible to pass in localized strings for whatever needs it. This change removes the tagged templates, the babel plugin config, and some stuff in the storybook infrastructure to stub out those methods. This also fixes one place in dialogUtils.ts where we had a hardcoded string that was not able to be passed in. Testing Done: - Built a package. - Ran unit tests. - Audited all our strings for other places where we might use the tagged templates. - Audited strings to ensure that it was possible to externally override things where necessary.
    psyuzkoomwzssvmpoynwqmxzxlolzvuv
    Checks run (2 succeeded)
    flake8 passed.
    JSHint passed.
    maubin
    1. Ship It!
    2.