
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@tolgee/ngx
Advanced tools
Angular integration library of Tolgee. With this package. It's super simple to add i18n to your Angular app! For more information about using Tolgee with Angular, visit the docs 📖.
npm install @tolgee/ngx
Then use the library in your app.module.ts
. You have to add NgxTolgeeModule
to your imports section and
add factory provider for TOLGEE_INSTANCE
token returning your Tolgee instance.
...
import {
DevTools,
NgxTolgeeModule,
Tolgee,
TOLGEE_INSTANCE,
FormatSimple
} from '@tolgee/ngx';
...
@NgModule({
declarations: [
...
],
imports: [
NgxTolgeeModule,
...
],
providers: [
{
provide: TOLGEE_INSTANCE,
useFactory: () => {
return Tolgee()
.use(DevTools())
.use(FormatSimple())
.init({
language: 'en'
// for development
apiUrl: environment.tolgeeApiUrl,
apiKey: environment.tolgeeApiKey,
// for production
staticData: {
...
}
});
},
},
],
bootstrap: [AppComponent],
})
export class AppModule {}
Translating using pipe:
<h1>{{'hello_world' | translate}}</h1>
Or using t attribute
<h1 t key="providing_default_values"></h1>
Tolgee saves a lot of time you would spend on localization tasks otherwise. It enables you to provide perfectly translated software.
Read more on the Tolgee website
We welcome your PRs.
To develop the package locally:
pnpm install
pnpm develop:ngx
This runs the development suite of this monorepo for the ngx
integration. The changes in each dependency package are
automatically built and propagated to the test application, which you can open and play within the browser.
To run Jest tests of this package, execute
npm run test
In the /packages/ngx
directory.
To run the e2e tests, simply execute
pnpm run e2e run ngx
To open and play with e2e tests, run:
pnpm run e2e open ngx
FAQs
Angular integration of Tolgee localization tool
The npm package @tolgee/ngx receives a total of 902 weekly downloads. As such, @tolgee/ngx popularity was classified as not popular.
We found that @tolgee/ngx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.