Giter Club home page Giter Club logo

discourse-nationalflags's People

Contributors

abhilashlr avatar davidtaylorhq avatar downeymj avatar ebsy avatar fzngagan avatar killajoe avatar makarygo avatar mentalstring avatar merefield avatar rajan-blackboxes avatar rizka10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discourse-nationalflags's Issues

Sort country names

The country names don't seem to be sorted.

image

From playing a bit with the flags.yml, it seems it is following the ordering on that file which is by country code.

I could submit a PR with them sorted by country name, but that will not work when the plugin is used in other languages.

Would it be possible to sort them at the time the dropdown is created?

Add the ability for "viewers" to disable this feature

In a Discourse forum I belong to, we've been discussing the possibility of adding this plugin. There are some who would like it and others who wouldn't.

To satisfy both cases, I was wondering whether it would be possible to add a user preference to not show the flags, from a viewer perspective?

The default would be "show" unless changed by a user. For those not signed in, it could do whatever it does now but a "global" flag for the behaviour with non-signed-in viewers would be nice to have.

Plugin is incompatible with Ember 5 and thus with upcoming new Discourse release

After an update to Discourse 3.2.0.beta4, I see a banner warning

[Admin Notice] One of your themes or plugins needs updating for compatibility with upcoming Discourse core changes (more info).

In the console logs, I see

Usage of the Ember Global is deprecated. You should import the Ember module or the specific API instead. [deprecation id: ember-global] See https://deprecations.emberjs.com/v3.x/#toc_ember-global for more details.

More information is available here:

https://meta.discourse.org/t/preparing-for-discourses-upgrade-to-ember-5/287211?u=mcdanlj

Description being `undefined` for 3 regions

For de-at, fr-br, and us-at the description of the country seems undefined. Preferably because the flag's value itself isn't defined on the client.en.yml file. If you suggest the text, I can help fix this and test it out.

"national" flag when used by regions

From the name of the flag filenames, I'm guessing the plugin follows ISO 3166-1 alpha-2 codes. Although often called "country codes", this standard is "to represent countries, dependent territories, and special areas of geographical interest".

On a worldwide forum, it is not uncommon for the use of the words "country" or, in this case, "national" to be a source of disagreement (eg: "X is not a country", etc.) or at least some friction.

Could the label on the profile settings be something like "Location flag"? This would also cover the special case with the EU flag. I do realize the name of the plugin, but it would be enough to update the user facing text.

Pirate flag?

Is there any chance we could get a pirate flag? Might add a bit of fun to discourse.

There are possibly other flags that could be filed under a similar category, but this is the first that came to mind.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.