
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
@omnicar/sam-translate
Advanced tools
Handles fetching translations, looking up individual translations, and error reporting of missing translations
Client js library for fetching translations in a given format (see ILocaleTranslation
), translating strings, and reporting issues when found.
yarn
or npm i
(examples below are using yarn
)
yarn add OmniCar/sam-translate#0.0.1
Where #0.0.1
indicates the Github
release tag.
First call the init
function with the parameters that match your environment (dev/staging/prod etc.) or current needs.
These parameters are available:
translationFileUrl
- endpoint from where to fetch the translationserrorCallback
- function used for reporting errors. Defaults to window.alert
notify
- whether the library should report errors to an endpoint (see below)notificationEndpoint
- endpoint for POST
ing errorscache
- whether the library should use cache expiration (see below)cacheExpirationTime
- cache expiration time for local storageuseLocalStorage
- whether the library should save translations to localStorage
locale
- the locale to use. Defaults to the first one from the received translationsTo run jest
tests either run:
yarn test
or to run tests in watch mode run:
yarn test-watch
tsc
):yarn tsc
FAQs
Handles fetching translations, looking up individual translations, and error reporting of missing translations
The npm package @omnicar/sam-translate receives a total of 4 weekly downloads. As such, @omnicar/sam-translate popularity was classified as not popular.
We found that @omnicar/sam-translate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.