{"id":24664015,"url":"https://github.com/sujalchoudhari/offline_localization","last_synced_at":"2026-05-15T12:32:00.986Z","repository":{"id":213946443,"uuid":"735323637","full_name":"SujalChoudhari/offline_localization","owner":"SujalChoudhari","description":"Localization tool using Excel files","archived":false,"fork":false,"pushed_at":"2023-12-24T14:35:49.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-11T17:33:48.972Z","etag":null,"topics":["dart","dart-package","localization","localization-tool","offline-capable","pub-dev"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/offline_localization","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SujalChoudhari.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":"2023-12-24T13:49:36.000Z","updated_at":"2024-11-29T08:15:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b72ed93-3b84-411c-a536-2c66a74ede73","html_url":"https://github.com/SujalChoudhari/offline_localization","commit_stats":null,"previous_names":["sujalchoudhari/offline_localization"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SujalChoudhari/offline_localization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SujalChoudhari%2Foffline_localization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SujalChoudhari%2Foffline_localization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SujalChoudhari%2Foffline_localization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SujalChoudhari%2Foffline_localization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SujalChoudhari","download_url":"https://codeload.github.com/SujalChoudhari/offline_localization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SujalChoudhari%2Foffline_localization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dart","dart-package","localization","localization-tool","offline-capable","pub-dev"],"created_at":"2025-01-26T05:17:35.553Z","updated_at":"2026-05-15T12:32:00.952Z","avatar_url":"https://github.com/SujalChoudhari.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Offline Localization\nAn Offline tool for Localizations using Excel files.\n\n## Overview\n\n`offline_localization` is a simple localization package for Flutter applications that allows you to\nmanage translations offline using Excel files. It provides an easy-to-use interface for\ninitializing, changing, and retrieving translations in multiple languages.\n\n## Features\n\n- **Offline Localization:** Read and manage translations directly from Excel files stored locally in\n  the assets folder.\n- **Simple Integration:** Initialize the localization with a single line of code and change the\n  locale effortlessly.\n- **Efficient Retrieval:** Retrieve translations using a key and the current language, handling\n  fallbacks gracefully.\n\n## Installation\n\nTo use this package, add `offline_localization` as a dependency in your `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  offline_localization: ^1.0.2\n```\n\n## Getting Started\n\n### Initialize Localization\n\n```dart\nimport 'package:offline_localization/offline_localization.dart';\n\nvoid main() async {\n  // Replace 'assets/translations.xlsx' with the path to your Excel file\n  final excelFilePath = 'assets/translations.xlsx';\n  // Replace 'en' with the default language in your Excel file\n  final defaultLanguage = 'en';\n\n  await Loc.initialize(excelFilePath, defaultLanguage);\n\n  // Your app code...\n}\n```\n\n### Change Locale\n\n```dart\n// Change the current language to 'fr'\nawait Loc.changeLocale(\"assets/translations.xlsx\",'fr');\n```\n\n### Retrieve Translations\n\n```dart\n// Get the translation for the key 'hello_key'\nString translation = Loc.get('hello_key');\n```\n\n## Example\n\nSee the example directory for a sample Flutter application using `offline_localization`.\n\n## Note\n\nThis package assumes that the Excel file follows a specific format, with keys in the first column\nand languages in subsequent columns. Make sure your Excel file is structured accordingly.\n| keys | lang1 | lang2 | lang3 | \n|------|-------|-------|-------|\n| hello_key | Hello in Lang 1 | Hello in Lang2 | Hello in Lang 3 |\n| other_key | Other in Lang 1 | Other in Lang2 | Other in Lang 3 |\n\n## Issues and Feedback\n\nPlease file [issues](https://github.com/SujalChoudhari/offline_localization/issues) to send feedback\nor report a bug. Thank you!\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujalchoudhari%2Foffline_localization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujalchoudhari%2Foffline_localization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujalchoudhari%2Foffline_localization/lists"}