- add
yarn add @angular/localize
- import
import {} from "@angular/localize/init";
- not sure why need to import form
{}
- not sure why need to import form
http://yourserver/en/[..path]
http://sk.yourserver/[..path]
const fn () => {
useWatch$(() => {
state.done = $localize`Done`;
});
return <span>$localize`You have ${count} emails since ${date}!`</span>
}
try {
$loalize.transaltion = ...;
fn();
} finally {
$loalize.transaltion = null;
}
$localize`Since ${date} you have ${count}!`
123, 1/1/2022