API Reference kanta v#0.5.1
Modules
Main Kanta supervisor
Kanta.Backend is a module that provides an enhanced Gettext backend with database support.
Defines the behavior for Kanta adapters used in translation lookups.
Kanta adapter used in *gettext functions from Kanta.Gettext.Macros.
Provides a fallback mechanism to Gettext's PO files translation system.
Kanta Cache for minimalizing calls to DB
This is the cache for the primary storage.
Kanta configuration helper
Migrations create and modify the database tables Kanta needs to function.
GenServer responsible for checking if a new migration version is available for Kanta.
Kanta PostgreSQL V1 Migrations
Kanta PostgreSQL V2 Migrations
Kanta PostgreSQL V3 Migrations
Kanta PostgreSQL V4 Migrations
Kanta SQLite3 V1 Migrations
Kanta SQLite3 V2 Migrations
Kanta SQLite3 V3 Migrations
Handler responsible for extracting data from .po files
GenServer responsible for extracting messages and translations from .po files
Shared logic for parsing PO files and extracting message data. Used by both sync (MessagesExtractor) and stale detection.
Service responsible for extracting gettext messages from .po files
Service for extracting plural messages and translations from .po files
Service for extracting singular messages and translations from .po files
Service for detecting stale translation messages and finding potential replacements.
Represents a fuzzy match between a stale message and an active message.
Result struct for stale translation detection.
This module is a base for all queries modules in the app.
Kanta Registry
Main Kanta Translations context
Application source DB model used when dealing with multiple apps, for example mobile app
Includes type specs for application source.
ApplicationSources Kanta subcontext
Query module aka Finder responsible for finding application source
Query module aka Finder responsible for listing application sources
Gettext Context DB model
Includes type specs for context.
Gettext Contexts Kanta subcontext
Query module aka Finder responsible for finding gettext context
Query module aka Finder responsible for listing all gettext contexts
Query module aka Finder responsible for listing gettext contexts
Gettext domain DB model
Includes type specs for domain.
Gettext domains Kanta subcontext
Query module aka Finder responsible for finding gettext domain
Query module aka Finder responsible for listing all gettext domains
Query module aka Finder responsible for listing gettext domains
Locale DB model
Query module aka Finder responsible for finding locale
Query module aka Finder responsible for getting translation progress for given locale
Query module aka Finder responsible for listing locales
Finder for getting locales for which we have translated message
Service for mapping locale iso639 code to the Kanta locale
Utility for mapping locales data from iso code
Includes type specs for locale.
Locales Kanta subcontext
Gettext message DB model
Includes type specs for message.
Kanta Messages subcontext
Query module aka Finder responsible for finding gettext message
Query module aka Finder responsible for listing all gettext messages
Query module aka Finder responsible for listing gettext messages
Plural translation DB model
Includes type specs for plural translations.
Plural translations Kanta subcontext
Query module aka Finder responsible for finding plural translation
Query module aka Finder responsible for listing plural translations
Query module aka Finder responsible for listing translated plural translations
Singular translation DB model
Includes type specs for singular translations.
Singular translations Kanta subcontext
Query module aka Finder responsible for finding singular translations
Query module aka Finder responsible for listing singular translations
Query module aka Finder responsible for listing translated singular translations
Types used in Kanta
Color definitions
Handles recompilation detection for Gettext backends during extraction.
Utilities for converting module names to filesystem-safe folder names.
Kanta configuration validator
The entrypoint for defining your web interface, such as controllers, views, channels and so on.
SVG icons used in Kanta UI
Kanta Logo component
A component for rendering pagination controls with support for page navigation.
Simple search input component
Shared select component
Tabs component
Toggle/Checkbox component
Application sources table component
Messages filters bar component
Gettext messages table component
Gettext contexts table component
Gettext domains table component
Plural translation form component
Singular translation form component