Skip to content

Inline selectors without flags #20

Description

@mauriciopasquier

I would love to be able to use the locale selector inline, but with text links instead of flag images (it's a sensitive issue). It could keep using flags by default, but offer the option for the locale short name (e.g. en, en-US) or the localized string (e.g. active_admin.globalize.language.en).

I can work on a PR if there isn't already a way to do this and there is interest in merging.

For clarity, I'm asking about something like this (assuming inline: true):

translated_row :body, selector: :flag # This would be default
translated_row :body, selector: :locale
translated_row :body, selector: :locale_name

And maybe:

translated_row :body, selector: { en: 'something else', es: 'anything, really' }

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