{"id":32296897,"url":"https://github.com/ali2236/localization_table","last_synced_at":"2026-02-19T21:52:48.256Z","repository":{"id":56834145,"uuid":"247768706","full_name":"ali2236/localization_table","owner":"ali2236","description":"Localize you app the easy way using a localization table.","archived":false,"fork":false,"pushed_at":"2021-03-17T09:24:07.000Z","size":16,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T11:33:57.588Z","etag":null,"topics":["flutter-package","localization"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/localization_table","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/ali2236.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}},"created_at":"2020-03-16T16:48:00.000Z","updated_at":"2021-05-26T14:01:35.000Z","dependencies_parsed_at":"2022-09-09T14:01:02.243Z","dependency_job_id":null,"html_url":"https://github.com/ali2236/localization_table","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ali2236/localization_table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali2236%2Flocalization_table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali2236%2Flocalization_table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali2236%2Flocalization_table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali2236%2Flocalization_table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ali2236","download_url":"https://codeload.github.com/ali2236/localization_table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali2236%2Flocalization_table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29634417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T18:02:07.722Z","status":"ssl_error","status_checked_at":"2026-02-19T18:01:46.144Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["flutter-package","localization"],"created_at":"2025-10-23T04:35:42.986Z","updated_at":"2026-02-19T21:52:48.250Z","avatar_url":"https://github.com/ali2236.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# localization_table\n\nLocalize you app using a localization table.\n\n## How to use\n\n1. Create your table file with the `.csv` format.\n\n2. Put your supported languages in the first row, starting from the second cell.\n\n3. Put your string keys in the first column, starting from the second cell.\n\n4. Put your default language in the first cell at (0,0).\n\nExample Table:\n\n![](table.PNG)\n\n5. Add the LocalizationTableDelegate to your locale delegates.\n\n```dart\nMaterialApp(\n   localizationsDelegates: [\n     LocalizationTableDelegate('assets/table.csv'),\n     GlobalWidgetsLocalizations.delegate,\n     GlobalMaterialLocalizations.delegate,\n     GlobalCupertinoLocalizations.delegate,\n   ],\n   supportedLocales: [\n     Locale('fa'),\n     Locale('en'),\n   ],\n    home: /* ... */\n)\n```\n\n6. Use directly with `LocalizationTable.of(context).get(key)` where key is the string key of the value you want.  \n\n\n### Using the extension method\n\nFor ease of use there is a built in extension method that can be used in flutter projects that use dart 2.7.0 or higher.\n\n#### Example\n```dart\n    Text('login'.getString(context))\n``` \n\n## How to use without buildContext\n\n```dart\nvoid backgroundEntryPoint() async{\n  final locale = Locale('en'); \n  \n  final table = await LocalizationTableDelegate('assets/table.csv').load(locale);\n  \n  String appName = table.get('app_name');\n  \n  showNotification(appName);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali2236%2Flocalization_table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fali2236%2Flocalization_table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali2236%2Flocalization_table/lists"}