[DOCS] How do I use the {localize} dynamic localization binding?

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[DOCS] How do I use the {localize} dynamic localization binding?

Post by rednoah »

Use Japanese language movie / series name:

Format: Select all

{ localize.ja.n }


Use German language episode title:

Format: Select all

{ localize.de.t }


Use primary spoken language to localize the movie / series name:

Format: Select all

{ localize."${languages[0]}".n }


Use primary spoken language to localize the episode title:

Format: Select all

{ localize."${languages[0]}".t }


Use the first audio language to localize the movie / series name:

Format: Select all

{ localize[audio[0].language].n }


If the media file contains a Japanese audio stream then localize movie / series name to Japanese, otherwise use default movie / series name:

Format: Select all

{ audio.language =~ /ja/ ? localize.ja.n : n }


If Jackie Chan is an actor in the given movie, then use the Chinese movie name, otherwise use default movie name:

Format: Select all

{ actors =~ /Jackie Chan/ ? localize.zho.n : n }


Combine and deduplicate episode titles from multiple languages:

Format: Select all

{
	allOf{ t }{ localize.en.t }{ localize.pt.t }{ localize.pob.t }.unique().join(' - ')
}
:idea: Please read the FAQ and How to Request Help.
Post Reply