".localized" folders in MacOS

How does the mechanism of ".localized" folders in MacOS really works?

Where are the localisations stored?

Is it possible to create my own one?

Posted on Jul 23, 2022 12:30 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 25, 2022 4:06 PM

There are (at least) two layers to this, and the mechanisms are different depending on whether you're looking at standard System directories or user-created directories


For example, most of the standard directories (such as Desktop, Music, Pictures, etc.) have a sole .localized file. This acts as a flag to the Finder to show a localized name for this directory, based on the current user's settings. These use some kind of internal lookup, not (normally) accessible to the user.


For your own directories (and, to be clear, this is aimed at developers looking to localize their own application, not end users), you can create a .localized file along with a string list that maps to how the directory should be shown under different language settings.


More details can be found here: Localizing the Name of a Directory



3 replies
Question marked as Top-ranking reply

Jul 25, 2022 4:06 PM in response to J.Sauerbier

There are (at least) two layers to this, and the mechanisms are different depending on whether you're looking at standard System directories or user-created directories


For example, most of the standard directories (such as Desktop, Music, Pictures, etc.) have a sole .localized file. This acts as a flag to the Finder to show a localized name for this directory, based on the current user's settings. These use some kind of internal lookup, not (normally) accessible to the user.


For your own directories (and, to be clear, this is aimed at developers looking to localize their own application, not end users), you can create a .localized file along with a string list that maps to how the directory should be shown under different language settings.


More details can be found here: Localizing the Name of a Directory



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

".localized" folders in MacOS

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.