Spacialist Documentation
Home
User
Developer
GitHub
Home
User
Developer
GitHub
  • User

    • Overview
    • Getting Started
    • Dictionary (Thesaurus)
    • User And Role Management
    • Data Model
      • Entity Type
      • Attribute
      • Attribute Types
    • Entity
    • Collaboration
    • Bibliography
    • Spatial Data
    • Data Importer
    • Data Analysis Tool
  • Developer

    • Developer
    • Environment
    • Coding Structure
    • Plugins

      • Legacy
      • Create A Plugin
      • The Manifest File (plugin.xml)
      • Frontend Capabilities
      • I18N - Internationalisation
      • Development
      • Plugin Log
      • Internal Structure
      • Lifecycle
      • Plugin Features
    • Classes

      • Entity Type
    • Commands

      • Export Entity Types (Data Model)
      • Refresh Testing
    • Framework

      • Authentication
    • Common Issues

I18N - Internationalisation

Plugins may use the vocabulary that is provided by the core, using vue's i18n feature. This can be accomplished by extracting the t function from SpPS.

    const t = SpPS.data.t;
    
    // Currenlty (v12) t is also available directly on the window object
    const t = window.t;

Core Messages

Core messages can be called regulary:

    t('global.cancel'); // -> 'Cancel'

Plugin Messages

Plugin messages get registered under the plugin path:

en.json
{
    "pluginName": {
        "celebration": "🎉 Congratulations!"
    }
}

Will be located at

    t('plugin.pluginName.celebration'); // -> "🎉 Congratulations!"
Edit this page
Last Updated:: 5/21/26, 11:53 AM
Contributors: Severino
Prev
Frontend Capabilities
Next
Development