Internationalisation
Bundled Plugins API
localized
Helps look up localized names for folders.

API Overview

API Documentation

Functions

Signature
cp.localized.getLocalizedName(path[, locale]) -> string, string
Type
Function
Description
Returns the localized name for the path in the specified locale. If all else fails, the
Parameters
  • path - The full path to the folder
  • locale - The locale to retrieve the name for.
Returns
  • The localized name, or name if not available.
  • The original name, minus .localized
Notes
  • This function will automatically convert a colon to a dash when localising.
Last modified 1mo ago
Export as PDF
Copy link