Translations for sudo::haiku
- Editing should be done within the
messages/<LANGCODE>/LC_MESSAGES/<domain>.po
files. - The source language will be in English.
- Please be observant for additional instructions for certain strings
import { messages } from '@/locales/messages';
// Create VueI18n instance with options
const i18n = new VueI18n({
locale: 'ja', // set locale
messages, // set locale messages
})
Not implemented yet, but it will probably be similar to how I did it for Sudomemo.
Generate the messages.js from the msgfmt .po files:
npm run compile
Clean and sort the msgfmt files:
npm run clean
Compile the msgfmt .po files into .mo files, for server-side usage:
npm run convert