Skip to content
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

i18n Setup : Simpler configuration + examples #1847

Merged
merged 36 commits into from
Mar 9, 2021
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9b78239
Replace example with createMany
Feb 10, 2021
ab9cd04
Merge branch 'main' into main
Feb 23, 2021
b7c5dbf
change comments + add an example for all databases
Feb 23, 2021
4823b1c
Merge branch 'main' into main
Feb 23, 2021
e9ba8a3
return to current seed.js
Feb 23, 2021
96698e6
Rewrite a simpler configuration of i18n
Feb 23, 2021
5ebc4c0
Add a template for translation locale files
Feb 24, 2021
3a5a18a
add sync node_module and locale files
Feb 24, 2021
293b3c8
add comment and todo
Feb 24, 2021
f263dd6
return to path.join
Feb 24, 2021
173895a
Merge branch 'main' into fix-i18n
Feb 24, 2021
7addf32
Merge branch 'main' into fix-i18n
Feb 24, 2021
7beefa5
Merge branch 'main' into fix-i18n
Feb 24, 2021
e59441f
Merge branch 'main' into fix-i18n
Mar 2, 2021
5064cc7
exemple with default generate home page
Mar 3, 2021
3703360
remove async for writeFile tasks
Mar 3, 2021
c017942
missing a "," in json files
Mar 3, 2021
dcc2429
add LanguageDetector
Mar 3, 2021
4c9bca2
add error handling
Mar 3, 2021
48651e9
remove "See this doc for info:"
Mar 3, 2021
16c3e97
Merge branch 'main' into fix-i18n
Mar 3, 2021
9027402
Fix typo
Mar 4, 2021
c0086ef
Merge branch 'main' into fix-i18n
thedavidprice Mar 5, 2021
b2f4763
Update packages/cli/src/commands/setup/i18n/i18n.js
thedavidprice Mar 5, 2021
c6e3375
index --> app
thedavidprice Mar 5, 2021
f47f175
remove yarn sync needed only for tailwind config
thedavidprice Mar 5, 2021
808face
fix path.join error
thedavidprice Mar 5, 2021
ffb6580
Merge branch 'main' into fix-i18n
Mar 5, 2021
b5ae085
update from main; use new path.to.appJs for TS support
thedavidprice Mar 8, 2021
e2e0df6
Merge branch 'fix-i18n' of https://github.com/simoncrypta/redwood int…
thedavidprice Mar 8, 2021
ae39471
add import './i18n' after the last import
Mar 9, 2021
c086f5c
clean addI18nImport function
Mar 9, 2021
1a6bf65
Merge branch 'main' into fix-i18n
Mar 9, 2021
0ace08d
fix "Module not found: Error: Can't resolve ..."
Mar 9, 2021
efd154b
function name typo
Mar 9, 2021
06e129d
remove Sync yarn.lock step
thedavidprice Mar 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/cli/src/commands/setup/i18n/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ export const handler = async ({ force }) => {
])
},
},
{
title: 'Sync yarn.lock and node_modules',
task: async () => {
/**
* Sync yarn.lock file and node_modules folder.
* Refer https://github.com/redwoodjs/redwood/issues/1301 for more details.
*/
await execa('yarn', ['install', '--check-files'])
},
},
])
},
},
Expand Down