Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@maz-ui/translations

Latest version: v5.9.0-beta.4

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: louismazel
565 Stars
77 Forks
38 Versions
18.5K Downloads
TypeScript Repo language

Scan summary

@maz-ui/translations was last scanned on 29 Nov 2026 at version 5.9.0-beta.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 38 versions; the latest 5 were published within 3 days (27–29 Nov 2026).
  • Findings: No rules fired in version 5.9.0-beta.4.
  • Downloads: 18,462 downloads.

Versions

38 versions published
Versions and the rules that fired in each
VersionPublishedStatus
5.9.0-beta.4 LATEST 29 Nov 2026 No rules fired
5.9.0-beta.3 29 Nov 2026 No rules fired
5.9.0-beta.2 29 Nov 2026 No rules fired
5.9.0-beta.1 28 Nov 2026 Not shown
5.9.0-0.canary-2f6efc4 27 Nov 2026 Not shown

No rules fired in 5.9.0-beta.4

Findings

Findings for v5.9.0-beta.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 5.9.0-beta.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@maz-ui/translations

Simple and lightweight translation system for Maz-UI components.

Installation

npm install @maz-ui/translations

Features

  • 🌍 Simple internationalization for Maz-UI components
  • 🔄 Reactive locale switching
  • 📝 Variable interpolation in translations
  • 🎯 TypeScript support with full type safety
  • 🔧 Plugin-based integration with Vue applications
  • 📦 Lightweight - minimal bundle size impact
  • 🎨 Customizable - override default translations easily

Usage

Basic Configuration
import { MazUiTranslations } from '@maz-ui/translations'
import { createApp } from 'vue'

const app = createApp(App)

app.use(MazUiTranslations, {
  locale: 'fr',
  translations: {
    fr: {
      checklist: {
        noResultsFound: 'Aucun résultat trouvé',
        searchInput: {
          placeholder: 'Rechercher',
        },
      },
    },
    es: {
      checklist: {
        noResultsFound: 'No se encontraron resultados',
        searchInput: {
          placeholder: 'Buscar',
        },
      },
    }
  }
})
In Vue Components
<script setup>
import { useTranslations } from '@maz-ui/translations'

const { t, locale, setLocale } = useTranslations()

// Basic usage
const message = t('checklist.noResultsFound')

// With variables
const welcomeMessage = t('checklist.searchInput.placeholder', { name: 'John' })

// Change language
function switchLanguage(lang) {
  setLocale(lang)
}
</script>

<template>
  <div>
    <p>{{ t('checklist.noResultsFound') }}</p>
    <p>{{ t('checklist.searchInput.placeholder', { name: 'User' }) }}</p>

    <div class="language-switcher">
      <button @click="setLocale('en')">
        English
      </button>
      <button @click="setLocale('fr')">
        Français
      </button>
      <button @click="setLocale('es')">
        Español
      </button>
    </div>

    <p>Current locale: {{ locale }}</p>
  </div>
</template>
Variable Interpolation

The translation system supports variable interpolation using curly braces:

// Configuration
const translations = {
  en: {
    welcome: 'Hello {name}!',
    itemCount: 'You have {count} {count, plural, one {item} other {items}}'
  }
}

// Usage
t('welcome', { name: 'John' }) // "Hello John!"
t('itemCount', { count: 1 }) // "You have 1 item"
t('itemCount', { count: 5 }) // "You have 5 items"
Advanced Usage
Manual Instance Creation
import { createMazUiTranslations } from '@maz-ui/translations'

const i18n = createMazUiTranslations({
  locale: 'en',
  translations: {
    en: { /* your translations */ },
    fr: { /* your translations */ }
  }
})

// Use directly
const message = i18n.t('checklist.noResultsFound')
Custom Translation Keys
// Define your own translation structure
const customTranslations = {
  en: {
    navigation: {
      home: 'Home',
      about: 'About',
      contact: 'Contact'
    },
    form: {
      validation: {
        required: 'This field is required',
        email: 'Please enter a valid email'
      }
    }
  }
}

API Reference

useTranslations()

Returns an object with:

  • t(key, variables?) - Translation function

    • key: Translation key (dot notation supported)
    • variables: Optional object with variable substitutions
    • Returns: Translated string or key if not found
  • locale - Current locale (reactive ref)

    • Type: Ref<string>
    • Reactive property that updates when locale changes
  • setLocale(locale) - Change current locale

    • locale: New locale string
    • Returns a Promise resolved once the locale is loaded; the last call wins
    • Triggers reactivity for all components using translations
  • ready - Promise resolved once the locale and the fallback locale are loaded

    • Await it before rendering on the server (SSR) or before the hydration

Each instance (plugin, MazUiProvider, server request) has its own locale and messages. English is bundled, so the first render never shows keys; the other languages are loaded on demand.

Plugin Options
interface MazUiTranslationsOptions {
  locale?: string // Default locale (default: 'en')
  fallbackLocale?: string // Fallback locale (default: 'en')
  preloadFallback?: boolean // Load the fallback locale at startup (default: true)
  messages?: Record<string, Partial<MazUiTranslations> | (() => Promise<Partial<MazUiTranslations>>)> // Custom translations
}
Type Definitions
interface MazUiTranslationsInstance {
  locale: Ref<string>
  t: (key: string, variables?: Record<string, any>) => string
  setLocale: (locale: string) => Promise<void>
  ready?: Promise<void>
}

interface MazUiTranslations {
  select: { noOptions: string }
  input: { required: string }
  datePicker: { placeholder: string }
  // ... other component translations
}

Default Translations

The package includes default English translations for Maz-UI components. You can override any of these by providing your own translations.

Default Structure
const defaultTranslations = {
  select: {
    noOptions: 'No options available'
  },
  input: {
    required: 'This field is required'
  },
  datePicker: {
    placeholder: 'Select date...'
  }
}
Adding New Languages
app.use(MazUiTranslationsPlugin, {
  locale: 'fr',
  translations: {
    fr: {
      checklist: {
        noResultsFound: 'Aucun résultat trouvé',
        searchInput: {
          placeholder: 'Rechercher',
        },
      },
      // etc...
    },
    de: {
      checklist: {
        noResultsFound: 'Keine Optionen verfügbar',
        searchInput: {
          placeholder: 'Suchen',
        },
      },
      // etc...
    }
  }
})

License

MIT License - see LICENSE file for details.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @maz-ui/translations

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229