1+ import { getI18n } from '~/i18n'
2+
13interface ConversionProgress {
24 isConverting : boolean
35 progress : number
@@ -47,10 +49,11 @@ export async function transmuxMovToMp4Simple(
4749 try {
4850 console . info ( `🎯 Starting simple transmux conversion` )
4951
52+ const { t } = getI18n ( )
5053 onProgress ?.( {
5154 isConverting : true ,
5255 progress : 10 ,
53- message : 'Fetching video file...' ,
56+ message : t ( ' video.conversion.transmux.fetching' ) ,
5457 } )
5558
5659 // Fetch the video file
@@ -64,13 +67,13 @@ export async function transmuxMovToMp4Simple(
6467 onProgress ?.( {
6568 isConverting : true ,
6669 progress : 30 ,
67- message : 'Analyzing MOV structure...' ,
70+ message : t ( 'video.conversion.transmux.analyzing' ) ,
6871 } )
6972
7073 onProgress ?.( {
7174 isConverting : true ,
7275 progress : 60 ,
73- message : 'Converting container format...' ,
76+ message : t ( 'video.conversion.transmux.converting' ) ,
7477 } )
7578
7679 // For now, we'll create a simple container change
@@ -83,7 +86,7 @@ export async function transmuxMovToMp4Simple(
8386 onProgress ?.( {
8487 isConverting : true ,
8588 progress : 80 ,
86- message : 'Creating MP4 container...' ,
89+ message : t ( 'video.conversion.transmux.creating' ) ,
8790 } )
8891
8992 // Create blob with MP4 MIME type
@@ -93,7 +96,7 @@ export async function transmuxMovToMp4Simple(
9396 onProgress ?.( {
9497 isConverting : false ,
9598 progress : 100 ,
96- message : 'Transmux completed successfully' ,
99+ message : t ( 'video.conversion.transmux.success' ) ,
97100 } )
98101
99102 return {
0 commit comments