{"id":21616371,"url":"https://github.com/rootsoft/localazy_sdk","last_synced_at":"2025-03-18T17:21:11.637Z","repository":{"id":253383678,"uuid":"842574277","full_name":"RootSoft/localazy_sdk","owner":"RootSoft","description":"A Flutter OTA implementation for Localazy","archived":false,"fork":false,"pushed_at":"2025-03-13T10:49:04.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T11:34:33.338Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RootSoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-14T16:16:42.000Z","updated_at":"2025-03-13T10:34:12.000Z","dependencies_parsed_at":"2024-08-16T11:24:46.494Z","dependency_job_id":"7b7101c8-3abf-4ef1-b5ee-bd0619ca891b","html_url":"https://github.com/RootSoft/localazy_sdk","commit_stats":null,"previous_names":["rootsoft/localazy_sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootSoft%2Flocalazy_sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootSoft%2Flocalazy_sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootSoft%2Flocalazy_sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RootSoft%2Flocalazy_sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RootSoft","download_url":"https://codeload.github.com/RootSoft/localazy_sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244267475,"owners_count":20425835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T22:14:19.878Z","updated_at":"2025-03-18T17:21:11.614Z","avatar_url":"https://github.com/RootSoft.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Localazy SDK\n\n[![pub package](https://img.shields.io/pub/v/localazy_sdk.svg)](https://pub.dev/packages/localazy_sdk)\n\nThis package provides [Over-the-Air translation updates](#over-the-air-translation-updates) from the Localazy platform on top of the Intl package.\n\n## Platform Support\n\n| Android | iOS | Web | MacOS | Linux | Windows |\n| :-----: | :-: | :-: | :---: | :---: | :-----: |\n|    ✔    |  ✔  |  ✔  |   ✔   |   ✔   |    ✔    |\n\n## Over-the-Air translation updates\n\nUpdate translations for your Flutter applications over the air. [Learn more](https://localazy.com/tags/ota)\n\nWorks with projects that use Flutter Intl IDE plugin / `intl_utils`.\n\n### Setup for Flutter Intl\n\n1\\. Update `pubspec.yaml` file\n\n\u003cpre\u003e\ndependencies:\n  ...\n  \u003cb\u003elocalazy_sdk: ^1.0.0\u003c/b\u003e\n\u003c/pre\u003e\n\n2\\. Trigger localization files generation by Flutter Intl IDE plugin or by [intl_utils](https://pub.dev/packages/intl_utils) library\n\n3\\. Initialize Localazy SDK\n\n\u003cpre\u003e\nimport 'package:flutter/material.dart';\nimport 'package:flutter_localizations/flutter_localizations.dart';\n\u003cb\u003eimport 'package:localazy_sdk/localazy_sdk.dart';\u003c/b\u003e\nimport 'generated/l10n.dart';\n\nvoid main() {\n  Localazy.init(\n    'cdn id',\n    fileName: 'intl.arb',\n    cacheFolder: path.join((await getTemporaryDirectory()).path, 'translations'),\n  );\n  Localazy.setAppVersion('1.0.0');\n\n  runApp(\n    LocalazyApp(\n      router: router,\n    ),\n  );\n}\n\nclass LocalazyApp extends StatelessWidget {\n  final GoRouter router;\n\n  const LocalazyApp({\n    required this.router,\n    Key? key,\n  }) : super(key: key);\n\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp.router(\n      routerConfig: router,\n      title: Env.appName,\n      theme: appTheme(),\n      debugShowCheckedModeBanner: false,\n      builder: (context, child) {\n        return LocalazyBuilder(\n          defaultLocale: Locale(Intl.getCurrentLocale()),\n          supportedLocales: S.delegate.supportedLocales,\n          builder: (context) =\u003e child ?? const SizedBox.shrink(),\n        );\n      },\n      localizationsDelegates: const [\n        S.delegate,\n        GlobalMaterialLocalizations.delegate,\n        GlobalWidgetsLocalizations.delegate,\n        GlobalCupertinoLocalizations.delegate,\n      ],\n    );\n  }\n}\n\u003c/pre\u003e\n\n\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootsoft%2Flocalazy_sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootsoft%2Flocalazy_sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootsoft%2Flocalazy_sdk/lists"}