- 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
65 lines
2.1 KiB
JavaScript
65 lines
2.1 KiB
JavaScript
// Estonian [et]
|
|
import dayjs from '../index';
|
|
|
|
function relativeTimeWithTense(number, withoutSuffix, key, isFuture) {
|
|
var format = {
|
|
s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
|
|
m: ['ühe minuti', 'üks minut'],
|
|
mm: ['%d minuti', '%d minutit'],
|
|
h: ['ühe tunni', 'tund aega', 'üks tund'],
|
|
hh: ['%d tunni', '%d tundi'],
|
|
d: ['ühe päeva', 'üks päev'],
|
|
M: ['kuu aja', 'kuu aega', 'üks kuu'],
|
|
MM: ['%d kuu', '%d kuud'],
|
|
y: ['ühe aasta', 'aasta', 'üks aasta'],
|
|
yy: ['%d aasta', '%d aastat']
|
|
};
|
|
|
|
if (withoutSuffix) {
|
|
return (format[key][2] ? format[key][2] : format[key][1]).replace('%d', number);
|
|
}
|
|
|
|
return (isFuture ? format[key][0] : format[key][1]).replace('%d', number);
|
|
}
|
|
|
|
var locale = {
|
|
name: 'et',
|
|
// Estonian
|
|
weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
|
|
// Note weekdays are not capitalized in Estonian
|
|
weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
|
|
// There is no short form of weekdays in Estonian except this 1 letter format so it is used for both 'weekdaysShort' and 'weekdaysMin'
|
|
weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
|
|
months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
|
|
// Note month names are not capitalized in Estonian
|
|
monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
|
|
ordinal: function ordinal(n) {
|
|
return n + ".";
|
|
},
|
|
weekStart: 1,
|
|
relativeTime: {
|
|
future: '%s pärast',
|
|
past: '%s tagasi',
|
|
s: relativeTimeWithTense,
|
|
m: relativeTimeWithTense,
|
|
mm: relativeTimeWithTense,
|
|
h: relativeTimeWithTense,
|
|
hh: relativeTimeWithTense,
|
|
d: relativeTimeWithTense,
|
|
dd: '%d päeva',
|
|
M: relativeTimeWithTense,
|
|
MM: relativeTimeWithTense,
|
|
y: relativeTimeWithTense,
|
|
yy: relativeTimeWithTense
|
|
},
|
|
formats: {
|
|
LT: 'H:mm',
|
|
LTS: 'H:mm:ss',
|
|
L: 'DD.MM.YYYY',
|
|
LL: 'D. MMMM YYYY',
|
|
LLL: 'D. MMMM YYYY H:mm',
|
|
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
|
}
|
|
};
|
|
dayjs.locale(locale, null, true);
|
|
export default locale; |