Miscellaneous
| Page | Content |
|---|---|
| Dashboards | Dashboards, boards and panels. |
| AI assistant and MCP tools | The AI assistant app and tools for external assistants. |
Locale: languages, numbers, dates and currencies
Hubleto\Erp\Locale provides the formats of the user interface. Use it instead of formatting values yourself:
| Where | Call |
|---|---|
| PHP | $this->locale()->getAvailableLanguages() |
| Twig | hubleto.locale().formatCurrency(price, currency.symbol) |
| Twig | hubleto.locale().formatNumber(amount, 4) |
Examples.
apps/Deals/Views/Boards/MostValuableDeals.twig (excerpt)
<td>{{ hubleto.locale().formatCurrency(deal.price_excl_vat ?? 0, deal.CURRENCY.code ?? '') }}</td>
The language of the user is selected in the profile. See Localization.
