npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

timezone-i18n

v1.2.0

Published

World time zone dataset with multilingual city and country translations for TypeScript, JavaScript, Node.js and modern frontend frameworks.

Readme

timezone-i18n

npm version npm downloads License: MIT

A comprehensive, enterprise-grade, and lightweight multilingual (i18n) world time zone dataset. Fully optimized and synchronized according to the latest global geopolitical modifications, including permanent time zone shifts such as Turkey (2016), Mexico (2022), Iran (2022), Jordan & Syria (2022), and Kazakhstan (2024).


🚀 Key Features

  • Single Source of Truth (SSOT): Technical metadata (offsets, rawOffset, iana, isoCode, etc.) is strictly isolated from localization dictionaries to minimize bundle size and avoid memory bloating.
  • Enterprise-Grade Metadata: Includes native support for IANA zone names (Europe/Istanbul), ISO country codes (TR), time zone abbreviations (TRT), saniye-based offsets (rawOffset), and DST tracking flags.
  • Dynamic Localization Processing: Automatically structures dynamic option labels based on chosen dictionary mappings directly at runtime.
  • Broad Language Coverage (20 Languages): Native localized terminology spanning major international software markets.
  • Native TypeScript Support: Built with strict schema definitions ensuring 100% type safety.
  • Dual-Package Delivery: Fully pre-compiled to seamlessly ship via modern ES Modules (import) and legacy CommonJS (require).

📦 Installation

npm install timezone-i18n
# or
yarn add timezone-i18n
# or
pnpm add timezone-i18n

💻 Usage & Architecture

Import the library and query time zones dynamically by providing any supported ISO language code:

import { getTimezones } from 'timezone-i18n';

// Fetch full dataset mapped to Turkish localized values
const trTimezones = getTimezones('tr');
console.log(trTimezones[0]);

/*
Expected Output Object Struct (v1.2.0+):
{
  id: 'UTC+3-istanbul',
  offset: 3,
  rawOffset: 10800,
  gmt: 'UTC+3',
  abbr: 'TRT',
  iana: 'Europe/Istanbul',
  isoCode: 'TR',
  region: 'Europe/Asia',
  hasDst: false,
  city: 'İstanbul',
  country: 'Türkiye',
  label: 'İstanbul, Türkiye (UTC+3)'
}
*/

// Fetch dataset using the default fallback (English)
const enTimezones = getTimezones('en'); 
// Dynamically constructs labels formatted as: "City, Country (UTC+Offset)"

🛠️ Supported Languages (20 Localizations)

The library maps time zones to city and country translations dynamically across 20 languages. Pass any of the following parameters into getTimezones():

| Code | Language | Native Name | Code | Language | Native Name | | :---: | :--- | :--- | :---: | :--- | :--- | | en | English (Default) | English | ja | Japanese | 日本語 | | tr | Turkish | Türkçe | nl | Dutch | Nederlands | | ar | Arabic | العربية | pl | Polish | Polski | | bg | Bulgarian | Български | pt | Portuguese | Português | | bn | Bengali | বাংলা | ro | Romanian | Română | | de | German | Deutsch | ru | Russian | Русский | | es | Spanish | Español | uk | Ukrainian | Українська | | fr | French | Français | ur | Urdu | اردو | | hi | Hindi | हिन्दी | zh | Chinese (Mandarin) | 中文 (简体) | | id | Indonesian | Bahasa Indonesia | | | |


📄 License

Distributed under the MIT License. See LICENSE for more information.