Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text translations #61

Open
philippze opened this issue Dec 7, 2017 · 0 comments
Open

Text translations #61

philippze opened this issue Dec 7, 2017 · 0 comments

Comments

@philippze
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant