projectblacklight / blacklight-locale_picker Goto Github PK
View Code? Open in Web Editor NEWA dropdown locale switcher for Blacklight apps
License: Other
A dropdown locale switcher for Blacklight apps
License: Other
For what it's worth, I tried adding this to a rails 6 app, and it seems to be working okay with no changes needed (except to the .gemspec file).
This was initially implemented as <span class="sr-only"><%= t('blacklight.toolbar.language_switch') %></span>
, but we don't have translations for this yet.
What's the target string for this menu, @ggeisler @jvine ? "Change language"? "Language" might be slightly easier to source translations for because it doesn't have a verb.
Should this be an aria-label
on the ul
instead? An example is language picker on if-me.org
The dropdown currently has the "menu" role. According to the ARIA standard, elements with the "menu" role need to have child elements with the menuitem role.
I am not an accessibility expert, but I am not sure the "menu" role is even the best fit for the dropdown, so the best option might be to just remove that role.
Part of projectblacklight/arclight#544
When running Arclight, the application errors because of the following syntax error
s/blacklight-locale_picker-0.1.0/app/helpers/blacklight/locale_picker/locale_helper.rb:17: syntax error, unexpected keyword_rescue, expecting keyword_end (SyntaxError)
rescue ActionController::UrlGenerati
^
/Users/nikitas/.rvm/gems/ruby-2.4.4/gems/blacklight-locale_picker-0.1.0/app/helpers/blacklight/locale_picker/locale_helper.rb:17: syntax error, unexpected =>
troller::UrlGenerationError => e
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.