Official docs are not in sync with latest @ngneat/transloco
See original GitHub issue
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ ] Feature request
[x] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:
Current behavior
Running:
ng add @ngneat/transloco
doesn’t create transloco-root.module.ts
as the docs say.
It creates transloco.loader.ts
and i18
files.
Also:
export declare type TranslocoConfig = {
defaultLang: string;
listenToLangChange?: boolean;
prodMode?: boolean;
fallbackLang?: string | string[];
failedRetries?: number;
};
doesn’t have availableLangs
and some other properties that are stated in the docs.
It’s also unclear how to import transloco into lazy loaded modules.
Expected behavior
Keep official docs in sync with latest @ngneat/transloco
Minimal reproduction of the problem with instructions
Run:
ng add @ngneat/transloco
What is the motivation / use case for changing the behavior?
Avoid confusion.
Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 9.0.1
Node: 13.8.0
OS: darwin x64
Angular: 9.0.0
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.900.1
@angular-devkit/build-angular 0.900.1
@angular-devkit/build-optimizer 0.900.1
@angular-devkit/build-webpack 0.900.1
@angular-devkit/core 9.0.1
@angular-devkit/schematics 9.0.1
@angular/cli 9.0.1
@angular/flex-layout 9.0.0-beta.29
@ngtools/webpack 9.0.1
@schematics/angular 9.0.1
@schematics/update 0.900.1
rxjs 6.5.4
typescript 3.7.5
webpack 4.41.2
Issue Analytics
- State:
- Created 4 years ago
- Comments:11
Top Results From Across the Web
Transloco Angular i18n
Transloco the Angular translations library (i18n) official documentation site.
Read more >FAQ | Transloco Angular i18n - GitHub Pages
I'm calling the translate function inside ngOnInit but it says the translation is missing and when I use the structural directive it works...
Read more >Persist Translations | Transloco Angular i18n - GitHub Pages
This plugin provides the functionality of persisting translations to the provided storage. Installation. npm install @ngneat/transloco-persist-translations ...
Read more >Config Options | Transloco Angular i18n - GitHub Pages
Config Options. Below is a list of the config options and their usages: reRenderOnLangChange . Applications that don't allow the user to change...
Read more >Installation | Transloco Angular i18n - GitHub Pages
ng add @ngneat/transloco --project=your_project_name ... Next, it will create a new file, transloco-root.module.ts which exposes an Angular's module with a ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Look, man, we are all creating issues here, as we bump along the problems using your library. The easiest thing is to close the issue. All I am saying is that I tried all the options that you suggested, and they are not working. Please, keep it cool, I mean you no harm.
ng add @ngneat/transloco
added this version to package.json:
"@ngneat/transloco": "1.1.1"
which seems pretty outdated…