File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
packages/cli/src/cli/show Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @replexica/cli " : minor
3+ " replexica " : minor
4+ ---
5+
6+ replexica show files now shows both source and target paths
Original file line number Diff line number Diff line change @@ -25,8 +25,12 @@ export default new Command()
2525 const buckets = getBuckets ( i18nConfig ) ;
2626 for ( const bucket of buckets ) {
2727 for ( const pathPattern of bucket . pathPatterns ) {
28- const sourcePathPattern = pathPattern . replace ( / \[ l o c a l e \] / g, i18nConfig . locale . source ) ;
29- console . log ( sourcePathPattern ) ;
28+ const sourcePath = pathPattern . replace ( / \[ l o c a l e \] / g, i18nConfig . locale . source ) ;
29+ const targetPaths = i18nConfig . locale . targets . map ( ( targetLocale ) => pathPattern . replace ( / \[ l o c a l e \] / g, targetLocale ) ) ;
30+ [ sourcePath , ...targetPaths ]
31+ . forEach ( ( path ) => {
32+ console . log ( path ) ;
33+ } ) ;
3034 }
3135 }
3236 } catch ( error : any ) {
You can’t perform that action at this time.
0 commit comments