Files
standardnotes-app-web/packages/mobile/src/Lib/moment.ts
2022-06-09 09:45:15 -05:00

13 lines
304 B
TypeScript

// moment.js
import moment from 'moment'
import { NativeModules, Platform } from 'react-native'
// moment.js
const locale =
Platform.OS === 'android'
? NativeModules.I18nManager.localeIdentifier
: NativeModules.SettingsManager.settings.AppleLocale
moment.locale(locale)
export default moment