#NEWLINE# def get_localized_pod_path( self , params ) : #NEWLINE# #INDENT# if ( self . localization and ( '{locale}' in self . localization [ 'static_dir' ] ) and ( 'locale' in params ) ) : #NEWLINE# #INDENT# source_format = self . localization [ 'serve_at' ] #NEWLINE# source_format += '/{filename}' #NEWLINE# source_format = source_format . replace ( '//' , '/' ) #NEWLINE# kwargs = params #NEWLINE# kwargs [ 'root' ] = self . pod . podspec . root #NEWLINE# if ( 'locale' in kwargs ) : #NEWLINE# #INDENT# locale = locales . Locale . from_alias ( self . pod , kwargs [ 'locale' ] ) #NEWLINE# kwargs [ 'locale' ] = str ( locale ) #NEWLINE# #UNINDENT# if ( '{root}' in source_format ) : #NEWLINE# #INDENT# kwargs [ 'root' ] = self . pod . podspec . root #NEWLINE# #UNINDENT# pod_path = source_format . format ( ** kwargs ) #NEWLINE# if self . fingerprinted : #NEWLINE# #INDENT# pod_path = StaticFile . remove_fingerprint ( pod_path ) #NEWLINE# #UNINDENT# if self . pod . file_exists ( pod_path ) : #NEWLINE# #INDENT# return pod_path