-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[CHORE] Switch to react-native-localize #1043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
734181c
fc037c9
24bece1
88aa6c8
7edc0a1
34086f9
f922631
6c3150d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export const initialConstants = null; | ||
| export const findBestAvailableLanguage = () => null; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import moment from 'moment'; | ||
|
|
||
| import I18n from '../i18n'; | ||
|
|
||
| export const capitalize = (s) => { | ||
| if (typeof s !== 'string') { return ''; } | ||
| return s.charAt(0).toUpperCase() + s.slice(1); | ||
| }; | ||
|
|
||
| export const formatDate = date => moment(date).calendar(null, { | ||
| lastDay: `[${ I18n.t('Yesterday') }]`, | ||
| sameDay: 'LT', | ||
| lastWeek: 'dddd', | ||
| sameElse: 'MMM D' | ||
| }); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.