@molecule/app-locales-angular

Translations · i18n · App (browser) · v1.3.0 · Apache-2.0

Translations for @molecule/app-angular in 79 languages

npm install @molecule/app-locales-angular

npm · Source on GitHub

How it works

@molecule/app-locales-angular carries the translations for the i18n package on the app (browser) side. Install it beside that package and the i18n core picks the strings up by locale.

import { af, am, ar } from '@molecule/app-locales-angular'
import type { AngularTranslationKey, AngularTranslations } from '@molecule/app-locales-angular'

Works with: @molecule/app-i18n

Reference

Translations for @molecule/app-angular in 79 languages

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Purpose

Provides translations for the @molecule/app-angular package which has 14 translation keys.

Languages

80 languages supported: af, am, ar, az, be, bg, bn, bs, ca, cs, cy, da, de, el, en, es, et, eu, fa, fi, fil, fr, ga, gl, gu, ha, he, hi, hr, hu, hy, id, ig, is, it, ja, ka, kk, km, kn, ko, ky, lo, loader, lt, lv, mk, ml, mn, mr, ms, mt, my, nb, ne, nl, pa, pl, pt, ro, ru, si, sk, sl, sq, sr, sv, sw, ta, te, th, tr, uk, ur, uz, vi, yo, zh, zh-TW, zu.

Quick Start

import { af, am, ar } from '@molecule/app-locales-angular'
import type { AngularTranslationKey, AngularTranslations } from '@molecule/app-locales-angular'

Registration

In an mlcl-scaffolded app, installed locale bonds are registered automatically by the app's i18n setup at startup — installing this package is normally all you need. To register manually (or in a custom app), pass the whole module to registerLocaleModule from @molecule/app-i18n at startup:

import { registerLocaleModule } from '@molecule/app-i18n'
import * as locales from '@molecule/app-locales-angular'

registerLocaleModule(locales)

Editing translations

en.ts is the canonical key set — every other language file mirrors its keys. To change or add strings, edit the locale files in this package (add new keys to en.ts first) or merge overrides at runtime with addTranslations(locale, map). Never hand-write translations inline in feature code: features call t(key, values, { defaultValue }) and THIS bond supplies the translations — inline strings bypass every other language.

Translation Keys

KeyEnglish
angular.error.useChatOutsideProvideruseChatProvider must be used within a ChatProvider
angular.error.useAuthOutsideProvideruseAuthClient must be used within an AuthProvider
angular.error.useEditorOutsideProvideruseEditorProvider must be used within an EditorProvider
angular.error.useHttpOutsideProvideruseHttpClient must be used within an HttpProvider
angular.error.useLoggerOutsideProvideruseLoggerProvider must be used within a LoggerProvider
angular.error.usePreviewOutsideProviderusePreviewProvider must be used within a PreviewProvider
angular.error.useRouterOutsideProviderNo router here. Add provideMoleculeRouter() from the routing bond (@molecule/app-routing-angular-router) to the app
angular.error.noRoutedViewThis routing bond has no routed view to render here: pass the page as children instead. If the app routes with @molecule/app-routing-angular-router, that bond is older than this binding: update it (npm install @molecule/app-routing-angular-router@latest).
angular.error.useStorageOutsideProvideruseStorageProvider must be used within a StorageProvider
angular.error.useThemeOutsideProvideruseThemeProvider must be used within a ThemeProvider
angular.error.useWorkspaceOutsideProvideruseWorkspaceProvider must be used within a WorkspaceProvider
angular.error.oauthFailedOAuth login failed
angular.error.unsupportedMethodUnsupported method: {{method}}
angular.error.useStoreOutsideProvideruseStateProvider must be used within a StateProvider

Metadata

  • Type: locales
  • Category: i18n
  • Stack: app
  • Translates: @molecule/app-angular