Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
backup
Drip
Commits
4676c505
Commit
4676c505
authored
3 years ago
by
Lisa Hillebrand
Browse files
Options
Downloads
Patches
Plain Diff
162 Add configuration for i18next
parent
886a952e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
i18n/en.json
+8
-0
8 additions, 0 deletions
i18n/en.json
i18n/i18n.js
+28
-0
28 additions, 0 deletions
i18n/i18n.js
index.js
+1
-0
1 addition, 0 deletions
index.js
with
37 additions
and
0 deletions
i18n/en.json
0 → 100644
+
8
−
0
View file @
4676c505
{
"components"
:
{
"Home"
:
{
"addDataForToday"
:
"add data for today"
,
"noPrediction"
:
"As soon as you have tracked 3 menstrual cycles, drip will make predictions for the next ones."
}
}
}
This diff is collapsed.
Click to expand it.
i18n/i18n.js
0 → 100644
+
28
−
0
View file @
4676c505
import
i18n
from
'
i18next
'
;
import
{
initReactI18next
}
from
'
react-i18next
'
;
// translation files
import
en
from
'
./en.json
'
;
const
resources
=
{
en
:
{
translation
:
en
},
};
i18n
// pass the i18n instance to react-i18next.
.
use
(
initReactI18next
)
// init i18next
// for all options read: https://www.i18next.com/overview/configuration-options
.
init
({
resources
,
fallbackLng
:
'
en
'
,
debug
:
true
,
interpolation
:
{
escapeValue
:
false
,
// not needed for react as it escapes by default
}
});
export
default
i18n
;
This diff is collapsed.
Click to expand it.
index.js
+
1
−
0
View file @
4676c505
import
{
AppRegistry
}
from
'
react-native
'
import
AppWrapper
from
'
./components/app-wrapper
'
import
'
./i18n/i18n
'
;
AppRegistry
.
registerComponent
(
'
drip
'
,
()
=>
AppWrapper
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment