@@ -156,7 +156,8 @@ export class AssetProcessor {
156156 ) ;
157157 const reconstructedAsset : INonLocalizedReconstructionResult = AssetProcessor . _reconstructNonLocalized (
158158 parsedAsset . reconstructionSeries ,
159- options . asset . size ( )
159+ options . asset . size ( ) ,
160+ options . noStringsLocaleName
160161 ) ;
161162
162163 const parsedAssetName : IParseResult = AssetProcessor . _parseStringToReconstructionSequence (
@@ -166,7 +167,8 @@ export class AssetProcessor {
166167 ) ;
167168 const reconstructedAssetName : INonLocalizedReconstructionResult = AssetProcessor . _reconstructNonLocalized (
168169 parsedAssetName . reconstructionSeries ,
169- options . assetName . length
170+ options . assetName . length ,
171+ options . noStringsLocaleName
170172 ) ;
171173
172174 const issues : string [ ] = [
@@ -267,7 +269,8 @@ export class AssetProcessor {
267269
268270 private static _reconstructNonLocalized (
269271 reconstructionSeries : IReconstructionElement [ ] ,
270- initialSize : number
272+ initialSize : number ,
273+ noStringsLocaleName : string
271274 ) : INonLocalizedReconstructionResult {
272275 const issues : string [ ] = [ ] ;
273276
@@ -296,7 +299,7 @@ export class AssetProcessor {
296299
297300 case 'dynamic' : {
298301 const dynamicElement : IDynamicReconstructionElement = element as IDynamicReconstructionElement ;
299- const newValue : string = dynamicElement . valueFn ( undefined ! , dynamicElement . token ) ;
302+ const newValue : string = dynamicElement . valueFn ( noStringsLocaleName , dynamicElement . token ) ;
300303 reconstruction . push ( newValue ) ;
301304 sizeDiff += ( newValue . length - dynamicElement . size ) ;
302305 break ;
0 commit comments