Skip to content

Text translations #61

Description

@philippze

I would like to make the selection sharer translatable. Do you have any preferences about how this sould be done?

I actually need this feature for Drupal, where we must wrap the strings into the function Drupal.t().

To make the feature available also for other environments, I would suggest something like this:

if (typeof(selection_sharer_gettext) === 'undefined') {
    var selection_sharer_gettext = function (string) {
        return string;
    };
}

So, everyone using a translation framework can wrap it into this function.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions