šŸš€ DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@globalfishingwatch/i18n-labels

Package Overview
Dependencies
Maintainers
4
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globalfishingwatch/i18n-labels

A library for managing i18n labels in Global Fishing Watch applications.

latest
stable
npmnpm
Version
1.2.264
Version published
Weekly downloads
670
-23.78%
Maintainers
4
Weekly downloads
Ā 
Created
Source

@globalfishingwatch/i18n-labels

A library for managing i18n labels in Global Fishing Watch applications.

Overview

This library contains JSON files with translations and labels for:

  • Datasets metadata and schema definitions
  • Country flags/names
  • Timebar interface elements

It uses Crowdin for managing the translations files

As a developer the only file you need to care about is the source/ file, the rest is managed by the Crowdin project.

Structure

The library is organized into language-specific directories:

i18n-labels/
ā”œā”€ā”€ en/          # English translations
ā”œā”€ā”€ es/          # Spanish translations
ā”œā”€ā”€ fr/          # French translations
ā”œā”€ā”€ id/          # Indonesian translations
ā”œā”€ā”€ pt/          # Portuguese translations
ā”œā”€ā”€ source/      # Source JSON files
└── val/         # Used for the crowdin live translation

Installation

yarn add @globalfishingwatch/i18n-labels

Available Resources

1. Datasets (datasets.json)

Contains translations for dataset names, descriptions and schema definitions.

Example usage:

import { datasets } from '@globalfishingwatch/i18n-labels'

// Access dataset information
const bathymetryInfo = datasets['public-global-bathymetry']
console.log(bathymetryInfo.name) // "Bathymetry"

2. Flags (flags.json)

Contains country names mapped to their ISO-3 codes.

Example usage:

import { flags } from '@globalfishingwatch/i18n-labels'

console.log(flags.USA) // "United States of America"

3. Timebar (timebar.json)

Contains translations for the time navigation interface elements:

Example usage:

import { timebar } from '@globalfishingwatch/i18n-labels'

console.log(timebar.playback.playAnimation) // "Play animation"

Build and publish

nx build i18n-labels
nx publish i18n-labels

License

MIT

FAQs

Package last updated on 22 Oct 2025

Did you know?

Socket

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.

Install

Related posts