Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,6 @@ Sets the current locale. Pass `null` or `undefined` to reset to system locale.

Throws an error if the locale is invalid.

## Examples

```typescript
// Basic usage
setLocale('es-ES');
const current = getLocale(); // "es-ES"

// Reset to system
setLocale(null);
const system = getLocale(); // "en-US" (or your system locale)

// Error handling
try {
setLocale('invalid');
} catch (error) {
console.error(error.message);
}
```

---

## 📚 Documentation
Expand All @@ -63,4 +44,4 @@ See the full API documentation at [agape.dev/api](https://agape.dev/api).

## 📦 Agape Toolkit

This package is part of the [Agape Toolkit](https://github.com/AgapeToolkit/AgapeToolkit) - a comprehensive collection of TypeScript utilities and libraries for modern web development.
This package is part of the [Agape Toolkit](https://github.com/AgapeToolkit/AgapeToolkit) - a comprehensive collection of TypeScript utilities and libraries for modern web development.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agape/locale",
"version": "0.1.0",
"version": "0.1.1",
"description": "Locale management utilities with global state",
"main": "./cjs/index.js",
"module": "./es2020/index.js",
Expand Down