Call-for-Code-for-Racial-Justice / Five-Fifths-Voter

Five Fifths Voter is a web application tool designed to enable and empower Black people and others to exercise their right to vote by ensuring their voice is heard
Apache License 2.0
67 stars 38 forks source link

countdownAndlanguagedropdown #254

Closed GeraldMit closed 3 years ago

GeraldMit commented 3 years ago

Contributes to # (add issue number here. i.e. #302)

222

213

What did you do?

1) change size of count down timer

image image

2) add a dropdown for languages

image image

3) change language selection to native language name for the language

image image

Why did you do it?

for issues as given

How have you tested it?

local build

Were docs updated if needed?

Type of change

Checklist:

davidnixon commented 3 years ago

This branch works great for me locally. Yesterday I added this patch to the "blue" server to support detecting the browser language.

--- a/ui/src/plugins/i18n.js
+++ b/ui/src/plugins/i18n.js
@@ -31,7 +31,7 @@ const messages = {
 };

 export default new VueI18n({
-  locale: 'en',
+  locale: navigator.language || 'en',
   fallbackLocale: 'en',
   messages
 });

What do you think of including that permanently?