- 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
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
// Japanese [ja]
|
|
import dayjs from '../index';
|
|
var locale = {
|
|
name: 'ja',
|
|
weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
|
|
weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
|
|
weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
|
|
months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
|
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
|
ordinal: function ordinal(n) {
|
|
return n + "\u65E5";
|
|
},
|
|
formats: {
|
|
LT: 'HH:mm',
|
|
LTS: 'HH:mm:ss',
|
|
L: 'YYYY/MM/DD',
|
|
LL: 'YYYY年M月D日',
|
|
LLL: 'YYYY年M月D日 HH:mm',
|
|
LLLL: 'YYYY年M月D日 dddd HH:mm',
|
|
l: 'YYYY/MM/DD',
|
|
ll: 'YYYY年M月D日',
|
|
lll: 'YYYY年M月D日 HH:mm',
|
|
llll: 'YYYY年M月D日(ddd) HH:mm'
|
|
},
|
|
meridiem: function meridiem(hour) {
|
|
return hour < 12 ? '午前' : '午後';
|
|
},
|
|
relativeTime: {
|
|
future: '%s後',
|
|
past: '%s前',
|
|
s: '数秒',
|
|
m: '1分',
|
|
mm: '%d分',
|
|
h: '1時間',
|
|
hh: '%d時間',
|
|
d: '1日',
|
|
dd: '%d日',
|
|
M: '1ヶ月',
|
|
MM: '%dヶ月',
|
|
y: '1年',
|
|
yy: '%d年'
|
|
}
|
|
};
|
|
dayjs.locale(locale, null, true);
|
|
export default locale; |