Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#5293 closed enhancement (reported-upstream)

Translation: Strings in JavaScript files are always pointed to index.js without comments to translators.

Reported by: atachibana's profile atachibana Owned by:
Milestone: Priority: normal
Component: Translate Site & Plugins Keywords:


In, all strings in JavaScript files (ex. Gutenberg resources) are reported as locating in index.js without comments.

For example, string "Add block at position %1$d, Level %2$d" located in appender.js has useful comment to translators:

	const appenderPositionDescription = sprintf(
		/* translators: 1: The numerical position of the block that will be inserted. 2: The level of nesting for the block that will be inserted. */
		__( 'Add block at position %1$d, Level %2$d' ),

But, in, this string has following meta information only without comments.


When translator encounter this string, he/she have to search whole source code to find the string and above comments to know the meaning of %1$d and %2$d.

Change History (3)

This ticket was mentioned in Slack in #polyglots by atachibana. View the logs.

4 years ago

#2 @ocean90
4 years ago

  • Resolution set to reported-upstream
  • Status changed from new to closed

#3 @atachibana
4 years ago


Thank you for the reference.
I didn't know there are on going discussion and some solution, though it should be fixed from GlotPress. I'll add comments if needed.

Note: See TracTickets for help on using tickets.