Skip to content

Make emojis work as placeables #458

@iafan

Description

@iafan

With the increasing use of emojis in translation, a nice usability improvement would be to make all emojis act like placeables (i.e. clickable entities in source text).

Example: https://translate.evernote.com/ru/android_evernote/translate/strings.xml.po#unit=1254182
(here, in source text, tags <i> and </i> are highlighted and can be placed into the translation field at current caret position with a single click).

Relevant code: https://github.com/evernote/zing/blob/8157b44d7a46cf4bdc230a22ec83fa24ce56bcdc/pootle/static/js/utils.js#L116-L138

Relevant discussion on matching emojis with regular expressions in JavaScript:
https://stackoverflow.com/questions/22006218/replace-emoji-unicode-symbol-using-regexp-in-javascript

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions