- App.tsx: full navigation (Auth stack + Main tabs with 5 screens) - Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen - HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors - MapScreen: interactive map with layer toggles (6 layers) - MarketplaceScreen: categories (6), products (5), search - ChatScreen: AI chat with quick prompts (4), bot responses - ProfileScreen: user info, stats, menu (9 items), logout - AlertsScreen: alert list with severity, acknowledge - SensorsScreen: sensor list with type filters (6 types), search - ZonesScreen: zone cards with stats - SettingsScreen: language picker (FR/EN/ES/DE), privacy, about - Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n - Hooks: useSensors, useAlerts, useNotifications, useLocation - Components: Card, Button, LoadingSpinner, ErrorBoundary, Header - Services: iotService, notificationService (with axios API client) - Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN) - Theme: colors.ts with full design system (Blue Ocean palette) - Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
78 lines
2.1 KiB
JavaScript
78 lines
2.1 KiB
JavaScript
// Hebrew [he]
|
||
import dayjs from '../index';
|
||
var texts = {
|
||
s: 'מספר שניות',
|
||
ss: '%d שניות',
|
||
m: 'דקה',
|
||
mm: '%d דקות',
|
||
h: 'שעה',
|
||
hh: '%d שעות',
|
||
hh2: 'שעתיים',
|
||
d: 'יום',
|
||
dd: '%d ימים',
|
||
dd2: 'יומיים',
|
||
M: 'חודש',
|
||
MM: '%d חודשים',
|
||
MM2: 'חודשיים',
|
||
y: 'שנה',
|
||
yy: '%d שנים',
|
||
yy2: 'שנתיים'
|
||
};
|
||
|
||
function relativeTimeFormatter(number, withoutSuffix, key) {
|
||
var text = texts[key + (number === 2 ? '2' : '')] || texts[key];
|
||
return text.replace('%d', number);
|
||
}
|
||
|
||
var locale = {
|
||
name: 'he',
|
||
weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
|
||
weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
|
||
weekdaysMin: 'א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳'.split('_'),
|
||
months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
|
||
monthsShort: 'ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ'.split('_'),
|
||
relativeTime: {
|
||
future: 'בעוד %s',
|
||
past: 'לפני %s',
|
||
s: relativeTimeFormatter,
|
||
m: relativeTimeFormatter,
|
||
mm: relativeTimeFormatter,
|
||
h: relativeTimeFormatter,
|
||
hh: relativeTimeFormatter,
|
||
d: relativeTimeFormatter,
|
||
dd: relativeTimeFormatter,
|
||
M: relativeTimeFormatter,
|
||
MM: relativeTimeFormatter,
|
||
y: relativeTimeFormatter,
|
||
yy: relativeTimeFormatter
|
||
},
|
||
ordinal: function ordinal(n) {
|
||
return n;
|
||
},
|
||
format: {
|
||
LT: 'HH:mm',
|
||
LTS: 'HH:mm:ss',
|
||
L: 'DD/MM/YYYY',
|
||
LL: 'D [ב]MMMM YYYY',
|
||
LLL: 'D [ב]MMMM YYYY HH:mm',
|
||
LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
|
||
l: 'D/M/YYYY',
|
||
ll: 'D MMM YYYY',
|
||
lll: 'D MMM YYYY HH:mm',
|
||
llll: 'ddd, D MMM YYYY HH:mm'
|
||
},
|
||
formats: {
|
||
LT: 'HH:mm',
|
||
LTS: 'HH:mm:ss',
|
||
L: 'DD/MM/YYYY',
|
||
LL: 'D [ב]MMMM YYYY',
|
||
LLL: 'D [ב]MMMM YYYY HH:mm',
|
||
LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
|
||
l: 'D/M/YYYY',
|
||
ll: 'D MMM YYYY',
|
||
lll: 'D MMM YYYY HH:mm',
|
||
llll: 'ddd, D MMM YYYY HH:mm'
|
||
}
|
||
};
|
||
dayjs.locale(locale, null, true);
|
||
export default locale; |