Skip to content

bbesli/Tenlixor-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Tenlixor SDK

Official SDKs for Tenlixor localization platform - Multilingual support for web and mobile applications.

npm version License: MIT

πŸ“¦ Available SDKs

Web SDKs

Full-featured SDK with framework adapters for Angular, Vue, and React.

npm install @verbytes-tenlixor/sdk

Features:

  • βœ… Full TypeScript support with strict typing
  • βœ… Framework adapters: Angular Pipe, Vue Plugin, React Hooks
  • βœ… Auto DOM scanning for automatic translations
  • βœ… Smart caching with localStorage
  • βœ… Zero runtime dependencies

Supported Frameworks:

  • πŸ…°οΈ Angular 12+
  • βš›οΈ React 16.8+
  • 🟒 Vue 3+
  • πŸ“œ Vanilla JavaScript/TypeScript

πŸ“– Documentation | πŸ“¦ npm


Mobile SDKs

React Native SDK with AsyncStorage support for offline translations.

npm install @verbytes-tenlixor/react-native @react-native-async-storage/async-storage

Features:

  • πŸ“± iOS & Android support
  • πŸ’Ύ Persistent storage with AsyncStorage
  • πŸ”„ Automatic sync from API
  • ⚑ Fast & lightweight
  • 🎯 Full TypeScript support
  • πŸͺ React hooks integration

πŸ“– Documentation | πŸ“¦ npm


Dart SDK for Flutter applications with SharedPreferences support.

flutter pub add tenlixor

Features:

  • πŸ“± iOS & Android support
  • πŸ’Ύ Persistent storage with SharedPreferences
  • πŸ”” Event streams (loaded, languageChanged, error)
  • 🎨 ChangeNotifier integration
  • 🎯 Full Dart type safety
  • ⚑ Fast & lightweight

πŸ“– Documentation | πŸ“¦ pub.dev

πŸš€ Quick Start

Web (TypeScript/JavaScript)

import { Tenlixor } from '@verbytes-tenlixor/sdk';

const txr = new Tenlixor({
  token: 'YOUR_API_TOKEN',
  tenantSlug: 'your-tenant-slug',
  language: 'en'
});

await txr.init();
console.log(txr.t('app.welcome')); // "Welcome to Tenlixor!"

React Native

import { Tenlixor, useTenlixor } from '@verbytes-tenlixor/react-native';

const txr = new Tenlixor({
  token: 'YOUR_API_TOKEN',
  tenantSlug: 'your-tenant-slug',
  language: 'en',
  persistentStorage: true
});

function App() {
  const { t, language, setLanguage, isReady } = useTenlixor(txr);
  
  if (!isReady) return <ActivityIndicator />;
  
  return (
    <View>
      <Text>{t('app.welcome')}</Text>
      <Button title="Switch to TR" onPress={() => setLanguage('tr')} />
    </View>
  );
}

πŸ“š Documentation

πŸ§ͺ Test Applications

Test applications are available in the test directory:

πŸ› οΈ Development

Structure

Tenlixor-SDK/
β”œβ”€β”€ sdk/
β”‚   β”œβ”€β”€ typescript/      # Web SDK (TS/JS)
β”‚   β”œβ”€β”€ react-native/    # React Native SDK
β”‚   └── javascript/      # Legacy JS build
β”œβ”€β”€ test/
β”‚   β”œβ”€β”€ react-test/
β”‚   β”œβ”€β”€ vue-test/
β”‚   β”œβ”€β”€ angular-test/
β”‚   └── javascript-test/
└── README.md

Building SDKs

# TypeScript SDK
cd sdk/typescript
npm install
npm run build

# React Native SDK
cd sdk/react-native
npm install
npm run build

πŸ“ License

MIT Β© Verbytes

🀝 Support

πŸ”— Links

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors