Skip to content

Add placeholder text without sending it to translators #1801

@matthew-white

Description

@matthew-white

Sometimes, we want to merge an initial version of a feature without deciding on the final text that users will see. This issue is to figure out a process for the central-frontend repo to facilitate that. The goals are:

  1. Don't send messages to Transifex that are still preliminary. We've seen cases where translators translate a message that we ultimately replace before release.
  2. Make it easy to identify placeholder text so that we can replace it and also check for its absence prior to release.

Here are a couple of ideas for how to implement this:

Idea 1. Just specify raw text in the <template>, followed by a word like TODO. We could search the codebase for TODO.

Idea 2. Continue to use $t() in the <template>, but make it possible to add messages to <i18n> blocks without sending them to Transifex. One way to do this would be via magic comments, which our Transifex scripts already know how to identify. Something like:

{
  "en": {
    // @placeholder
    "foo": "Here is some placeholder text"
  }
}

The presence of @placeholder would tell Central not to send a message to Transifex. It'd also be easy to search the codebase for @placeholder.

Metadata

Metadata

Assignees

Labels

dxDeveloper workflow, automated checksfrontendRequires a change to the UI

Type

No type

Projects

Status

🕒 backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions