Skip to content

Commit

Permalink
Merge pull request #5 from data-for-change/feat/header
Browse files Browse the repository at this point in the history
fix translation
  • Loading branch information
amitshalev2 committed Aug 16, 2023
2 parents 4da19ec + 674916c commit 6d43cb5
Show file tree
Hide file tree
Showing 12 changed files with 520 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ VITE_SHOW_ONLY_OPER_CARDS=true
# === Feature flags (use for hiding features until ready for production) ===
VITE_LOGIN_READY_FOR_PROD=true
VITE_LOCATION_SEARCH_READY_FOR_PROD=false
VITE_LANGUAGE_READY_FOR_PROD=false
VITE_LANGUAGE_READY_FOR_PROD=false
2 changes: 1 addition & 1 deletion .env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ VITE_ENV=staging
# Behaviour
VITE_SHOW_META_TAGS=true
VITE_SHOW_DEMO_CARDS=true
VITE_SHOW_ONLY_OPER_CARDS=false
VITE_SHOW_ONLY_OPER_CARDS=false
Binary file added public/favicon.ico
Binary file not shown.
45 changes: 45 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Anyway Infographics" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<!-- Google Rubik font. see https://fonts.google.com/specimen/Rubik -->
<link href="https://fonts.googleapis.com/css2?family=Rubik&display=swap" rel="stylesheet" crossorigin="anonymous" />
<!-- Material icons. see: https://google.github.io/material-design-icons/ -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" crossorigin="anonymous" />
<title>ANYWAY</title>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
154 changes: 154 additions & 0 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
{
"footer": {
"about": "About",
"acknowledgements": "Acknowledgements",
"version": "Version"
},
"thankYouDialog": {
"Acknowledgements": "Acknowledgements",
"Developed by": "This project was developed by:",
"names": [
"Yuval Bar Levi",
"Miki Stanger",
"Meital Lazarovich",
"Atalya Alon",
"Eyal Levi",
"Carmel Paradis",
"Daniel Shely",
"Dror Reshef",
"Sergey Bekker",
"Eyal Shaar",
"Yael Luria",
"Yogev Boaron Ben-Har",
"Tal Licht",
"Ron Fybish",
"Adele Angel",
"Moran Zivoni"
]
},
"aboutDialog": {
"About": "About",
"Next challenge": "ANYWAY’s next challenge is to form an automatic generator of infographics to empower and serve journalists, bloggers, public opinion leaders, community leaders etc. in the era of data journalism.",
"The generated infographics": "The generated infographics will enhance reporting and news writing with the use of statistics. Each infographic will be created for a real-time road accident related news flash and will provide a deeper insight into the story based on historical data.",
"We believe": "This, we believe, will increase both the quantity and quality of articles dealing with road accidents, and will result in raising public awareness and creating pressure on decision makers to initiate infrastructure improvements in light of",
"linkText": "Vision Zero.",
"linkUrl": "https://en.wikipedia.org/wiki/Vision_Zero"
},
"filterBar": {
"Past Year": "Past Year",
"Last 3 Years": "Last 3 Years",
"Last 5 Years": "Last 5 Years",
"Last 8 Years": "last 8 years",
"Show Details": "Show Details",
"Hide Details": "Hide Details"
},
"textView": {
"inYear": "In the year",
"inYears": "In the years",
"on": "on",
"onSegment": "Road segment",
"occurred": "occurred",
"accidents": "accidents",
"killedAndHurt": "killed and hurt",
"hurt": "hurt",
"injured" : "casualties",
"fatal": {
"singular": "fatal",
"plural": "fatal"
},
"severe": {
"singular": "severe",
"plural": "severe"
},
"light": {
"singular": "light",
"plural": "light"
}
},
"onUrban": {
"road": "On urban roads (without intersections)",
"location": "throughout the country",
"route": "Route"
},
"cardEditor": {
"edit": "Card Editing",
"mode": "Display Mode",
"display": "Display",
"landscape": "Portrait",
"portrait": "Landscape",
"showAccidents": "Show Accidents",
"showInjured": "Show Injured",
"size": "Size",
"download": "Download as PNG"
},
"LocationApprove": {
"title": "Change/Approve location",
"newsFlash": "News flash",
"accident": "Location of accident",
"changeAllowed": "Can choose location on the map or choose city and ",
"updater": "User updating",
"status": "Status",
"pleaseMark": "please choose",
"verifyLocation": "Approve segment",
"rejectLocation": "Reject segment",
"segment": "Segment",
"approveButton": "Approve",
"cancelButton": "Cancel"
},
"labelPosition": "Label Position",
"table": {
"labels": ["Date", "Hour", "Type", "Killed", "Severe", "Light"]
},
"login": "LOGIN",
"filterPanel": {
"all": "all"
},
"header": {
"Search": "Search",
"User Greeting": "Hello",
"User Info Update": "Update Info",
"management": "Management"
},
"userDetailsForm": {
"Update": "Update",
"User Details": "User Details",
"Last Name": "Last Name",
"First Name": "First Name",
"Email": "Email",
"Organization": "Organization",
"Name": "Name"
},
"usersManagement": {
"title": "Users Management",
"cancel": "cancel",
"save": "save",
"saveAll": "save all",
"edit": "edit"
},
"sideBar": "Approximate location:",
"changeLocationButton": "Change/Approve location",
"UserProfileHeader": {
"hello": "Hello",
"logout": "LOGOUT"
},
"widgets": {
"countByCarType": {
"Accidents count by vehicle type": "Accidents count by vehicle type",
"compared to national average": "in a section compared to national average on roads of the same type"
},
"lastDateUpdated": "last update",
"No data": "No data to display"
},
"mapDialog": {
"searchButton": "Search",
"cancelButton": "Cancel",
"chosenSegment": "Chosen section:",
"searchSection": "Search section",
"searchStreetAndCity": "Search city/street",
"road": "road",
"city": "city",
"street": "street"
},
"locationIndicator": "(Chosen Section Search Result)",
"cityAndStreetIndicator": "(Chosen City And Street Search Result)"
}
176 changes: 176 additions & 0 deletions public/locales/he/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
{
"footer": {
"about": "אודות",
"acknowledgements": "תודות",
"version": "גרסה"
},
"thankYouDialog": {
"Acknowledgements": "תודות",
"Developed by": "את המערכת פיתחו בהתנדבות:",
"names": [
"יובל בר לוי",
"מיקי שטנגר",
"מיטל לזרוביץ׳",
"דניאל שלי",
"סרגי בקר",
"יעל לוריא",
"דרור רשף",
"אדל אנגל",
"כרמל פרדיס",
"עתליה אלון",
"יוגב בוארון בן-הר",
"אייל שער",
"אייל לוי",
"טל ליכט",
"רון פייביש",
"מורן צבעוני"
]
},
"aboutDialog": {
"About": "אודות",
"Next challenge": "האתגר הבא של ANYWAY הוא ליצור גנרטור אוטומטי שישרת ויעצים עיתונאים, בלוגרים, מובילי דעת קהל, מובילי קהילות וכו׳ בעידן עיתונות הדאטה.",
"The generated infographics": "האינפוגרפיקות שיווצרו ישתמשו בנתונים סטטיסטיים על מנת להעשיר את הדיווחים והכתבות. כל אינפוגרפיקה תיווצר במיוחד עבור דיווח בזמן אמת על ידיעה הקשורה לתאונת דרכים ותאפשר הבנה עמוקה יותר של הסיפור שתבוסס על נתונים היסטוריים.",
"We believe": "אנו מאמינים שבעקבות כך תהיה עליה בכמות וכן באיכות של כתבות המתייחסות לתאונות דרכים וכך תועלה המודעות הציבורית ויווצר לחץ על מקבלי ההחלטות ליזום שיפורים בתשתיות לאור חזון",
"linkText": "אפס הרוגים בתאונות דרכים",
"linkUrl": "https://ecowiki.org.il/wiki/%D7%97%D7%96%D7%95%D7%9F_%D7%90%D7%A4%D7%A1_%D7%94%D7%A8%D7%95%D7%92%D7%99%D7%9D_%D7%91%D7%AA%D7%90%D7%95%D7%A0%D7%95%D7%AA_%D7%93%D7%A8%D7%9B%D7%99%D7%9D"
},
"filterBar": {
"Past Year": "שנה אחרונה",
"Last 3 Years": "3 שנים אחרונות",
"Last 5 Years": "5 שנים אחרונות",
"Last 8 Years": "8 שנים אחרונות",
"Show Details": "הצג פרטים",
"Hide Details": "הסתר פרטים"
},
"textView": {
"inYear": "בשנה",
"inYears": "בשנים",
"on": "ב",
"onSegment": "במקטע",
"occurred": "התרחשו",
"killedAndHurt": "נהרגו ונפצעו",
"hurt": "נפצעו",
"accidents": "תאונות",
"injured": "נפגעים",
"fatal": {
"singular": "קטלנית",
"plural": "קטלניות"
},
"severe": {
"singular": "קשה",
"plural": "קשות"
},
"light": {
"singular": "קלה",
"plural": "קלות"
},
"killed": {
"singular": "הרוג",
"plural": "הרוגים"
},
"severeInjured": {
"singular": "פצוע קשה",
"plural": "פצועים קשה"
},
"lightInjured": {
"singular": "פצוע קל",
"plural": "פצועים קל"
}
},
"onUrban": {
"road": "כבישים בין עירוניים",
"location": "בכל הארץ",
"route": "כביש"
},
"cardEditor": {
"edit": "עריכת כרטיס",
"mode": "מצב תצוגה",
"display": "הצג",
"landscape": "לרוחב",
"portrait": "לאורך",
"showAccidents": "הצגת תאונות",
"showInjured": "הצגת נפגעים",
"size": "גודל",
"download": "הורד כתמונה"
},
"LocationApprove": {
"title": "שינוי/אישור מיקום",
"newsFlash": "המבזק",
"accident": "מיקום התאונה",
"changeAllowed": "ניתן לשנות מיקום על המפה או לבחור יישוב ורחוב",
"updater": "הגורם המעדכן",
"status": "סטטוס",
"pleaseMark": "נא לסמן",
"verifyLocation": "זיהוי מקטע ודאי",
"rejectLocation": "מקטע לא זוהה נכון",
"segment": "המקטע",
"approveButton": "אישור",
"cancelButton": "ביטול"
},
"labelPosition": "מיקום תווית",
"table": {
"labels": [
"תאריך",
"שעה",
"סוג תאונה",
"הרוג",
"קשה",
"קל"
]
},
"login": "התחברות",
"filterPanel": {
"all": "הכל"
},
"infografic" :{
"transaction":"תמלול אינפוגרפיקה"
},
"header": {
"Search": "חיפוש",
"User Greeting": "שלום",
"User Info Update": "פרטי משתמש",
"management": "ניהול"
},
"sideBar": "מיקום משוער:",
"changeLocationButton": "שינוי/אישור מיקום",
"UserProfileHeader": {
"hallo": "שלום",
"logout": "התנתקות"
},
"userDetailsForm": {
"Update": "עדכן",
"UserDetails": "פרטי משתמש",
"Last Name": "שם משפחה",
"First Name": "שם פרטי",
"Email": "דואר אלקטרוני",
"Organization": "ארגון",
"Name": "שם"
},
"usersManagement": {
"title": "ניהול משתמשים",
"cancel": "בטל",
"save": "שמור",
"saveAll": "שמור שינויים",
"edit": "עריכה"
},
"widgets": {
"countByCarType": {
"Accidents count by vehicle type": "השוואת אחוז התאונות ע\"פ כלי רכב",
"compared to national average": "במקטע לעומת ממוצע ארצי בכבישים מאותו הסוג"
},
"lastDateUpdated": "עדכון אחרון",
"No data": "אין נתונים להצגה"
},
"mapDialog": {
"searchButton": "חיפוש",
"cancelButton": "ביטול",
"chosenSegment": "המקטע שנבחר:",
"searchSection": "חיפוש מקטע",
"searchStreetAndCity": "חיפוש רחוב בעיר/יישוב",
"road": "כביש",
"city": "עיר",
"street": "רחוב"
},
"locationIndicator": "(תוצאות חיפוש מקטע)",
"cityAndStreetIndicator": "(תוצאות חיפוש עיר ורחוב)"
}
Binary file added public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6d43cb5

Please sign in to comment.