File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " replexica " : patch
3+ ---
4+
5+ fix cli error message
Original file line number Diff line number Diff line change @@ -24,25 +24,25 @@ export default new Command()
2424 spinner . start ( 'Loading Replexica build data...' ) ;
2525 const buildData = await loadBuildData ( ) ;
2626 if ( ! buildData ) {
27- spinner . fail ( `Couldn't load Replexica build data. Did you forget to run 'replexica i18n' ?` ) ;
27+ spinner . fail ( `Couldn't load Replexica build data. Did you forget to build your app ?` ) ;
2828 return process . exit ( 1 ) ;
2929 }
3030
3131 const localeSource = buildData . settings ?. locale ?. source ;
3232 if ( ! localeSource ) {
33- spinner . fail ( `No source locale found in Replexica build data. Please check your Replexica configuration and run 'replexica i18n' again.` ) ;
33+ spinner . fail ( `No source locale found in Replexica build data. Please check your Replexica configuration and try again.` ) ;
3434 return process . exit ( 1 ) ;
3535 }
3636
3737 const localeTargets = buildData . settings ?. locale ?. targets || [ ] ;
3838 if ( ! localeTargets . length ) {
39- spinner . fail ( `No target locales found in Replexica build data. Please check your Replexica configuration and run 'replexica i18n' again.` ) ;
39+ spinner . fail ( `No target locales found in Replexica build data. Please check your Replexica configuration and try again.` ) ;
4040 return process . exit ( 1 ) ;
4141 }
4242
4343 const localeSourceData = await loadLocaleData ( localeSource ) ;
4444 if ( ! localeSourceData ) {
45- spinner . fail ( `Couldn't load source locale data for source locale ${ localeSource } . Did you forget to run 'replexica i18n' ?` ) ;
45+ spinner . fail ( `Couldn't load source locale data for source locale ${ localeSource } . Did you forget to build your app ?` ) ;
4646 return process . exit ( 1 ) ;
4747 }
4848
You can’t perform that action at this time.
0 commit comments