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

@theo-i18n/globalize-kit

v1.0.6

Published

A lightweight TypeScript internationalization toolkit for React Native, Expo, and web applications.

Readme

🌍 @theo-i18n/globalize-kit

A lightweight, TypeScript-first internationalization toolkit for React Native, Expo, and React applications.


✨ Features

  • 🌐 Multi-language translation support
  • ⚛️ Works with React Native, Expo, and React
  • 🔷 TypeScript-first
  • 🔄 Dynamic language switching
  • 🧩 Nested translation support
  • 🔁 Fallback language support
  • 🪶 Lightweight and dependency-free
  • 📦 ESM module support

📦 Installation

npm
npm install @theo-i18n/globalize-kit
yarn
yarn add @theo-i18n/globalize-kit

🚀 Quick Start

1. Create Translation Files

English
// translations/en.ts

export const en = {
  welcome: "Welcome!",
  auth: {
    login: "Login",
    register: "Register",
  },
};
Burmese (Myanmar)
// translations/my.ts

export const my = {
  welcome: "ကြိုဆိုပါသည်!",
  auth: {
    login: "အကောင့်ဝင်ရန်",
    register: "စာရင်းသွင်းရန်",
  },
};
French
// translations/fr.ts

export const fr = {
  welcome: "Bienvenue!",
  auth: {
    login: "Connexion",
    register: "S'inscrire",
  },
};

2. Initialize Globalize

// globalize.ts

import { createGlobalize } from "@theo-i18n/globalize-kit";
import { en, fr, my } from "./helpers/translations";

export const globalize = createGlobalize({
  defaultLanguage: "en",
  fallbackLanguage: "en",

  languages: [
    { key: "en", language: "English" },
    { key: "my", language: "Burmese (Myanmar)" },
    { key: "fr", language: "French" },
  ],

  translations: {
    en,
    my,
    fr,
  },
});

3. Wrap Your App with GlobalizeProvider

// App.tsx

import React from "react";
import { GlobalizeProvider } from "@theo-i18n/globalize-kit";

import "./globalize";
import HomeScreen from "./HomeScreen";

export default function App() {
  return (
    <GlobalizeProvider>
      <HomeScreen />
    </GlobalizeProvider>
  );
}

4. Use Translation in Your Component

// HomeScreen.tsx

import React from "react";
import { View, Text, TouchableOpacity } from "react-native";
import { useTranslation } from "@theo-i18n/globalize-kit";

export default function HomeScreen() {
  const { t, language, changeLanguage } = useTranslation();

  return (
    <View style={{ padding: 20 }}>
      <Text>{t("welcome")}</Text>

      <TouchableOpacity
        onPress={() =>
          changeLanguage({
            key: "my",
            language: "Burmese (Myanmar)",
          })
        }
      >
        <Text>Change to Burmese</Text>
      </TouchableOpacity>
    </View>
  );
}

🌍 Recommended ISO Language Codes

| Language | ISO Code | |----------|----------| | English | en | | Burmese / Myanmar | my | | Spanish | es | | French | fr | | German | de | | Chinese | zh | | Japanese | ja | | Korean | ko | | Portuguese | pt | | Italian | it | | Dutch | nl | | Turkish | tr | | Hindi | hi | | Thai | th | | Vietnamese | vi |


📊 Feature Summary

| Feature | Supported | Description | |:--------|:---------:|-------------| | Flat Translation Keys | ✅ | Supports simple translations like t("welcome"). | | Nested Keys (Dot Notation) | ✅ | Supports nested translations like t("auth.login"). | | TypeScript Support | ✅ | Fully typed for better developer experience. | | React Native Support | ✅ | Works seamlessly with React Native. | | Expo Support | ✅ | Fully compatible with Expo projects. | | React Support | ✅ | Can also be used in React web applications. | | Current Language Code | ✅ | Access current language using language. | | Dynamic Language Switching | ✅ | Switch languages at runtime using changeLanguage(). | | Fallback Language | ✅ | Uses fallback language when translation is missing. | | Missing Key Handling | ✅ | Returns the key itself if translation does not exist. | | Global State Management | ✅ | Uses React Context for app-wide localization. | | Lightweight | ✅ | Small package size with minimal overhead. | | Dependency-Free | ✅ | No external dependencies required. | | ESM Module Support | ✅ | Supports modern JavaScript module systems. | | Tree-Shakable Exports | ✅ | Optimized for smaller bundle sizes. | | Scoped npm Package | ✅ | Published as @theo-i18n/globalize-kit. |


📁 Suggested Project Structure

project-root/
│
├── helpers/translations/
│   ├── en.ts
│   ├── my.ts
│   └── fr.ts

📄 License

MIT License

Copyright (c) 2026 Theo

This project is licensed under the MIT License.

If you find @theo-i18n/globalize-kit useful, please consider:

  • ⭐ Giving it a star on GitHub
  • 📢 Sharing it with others
  • ✍️ Writing about it