Skip to content

Commit

Permalink
fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Jan 1, 2022
1 parent dfc9020 commit e5e4311
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/localizer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1.0.1
## 1.0.1+1

- Fix key for sub translations.

Expand Down
8 changes: 5 additions & 3 deletions packages/localizer/example/localizer_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import 'package:localizer/localizer.dart';

void main() {
var localizer = Localizer();
localizer.loadMap("en", {"hello-world": "Hello world!"});
localizer.loadMap("en", {
"hello": ["Hello world!"]
});
localizer.loadMap("es", {"hello-world": "Hola mundo!"});
localizer.loadMap("fr", {"hello-world": "Bonjour le monde!"});
localizer.loadMap("de", {"hello-world": "Hallo Welt!"});

print("EN: ${localizer.get("en", "hello-world")}");
print("ES: ${localizer.get("es", "hello-world")}");
print("EN: ${localizer.get("en", "hello.0")}");
print("ES: ${localizer.get("es", "hello.0")}");
print("FR: ${localizer.get("fr", "hello-world")}");
print("DE: ${localizer.get("de", "hello-world")}");
}
3 changes: 1 addition & 2 deletions packages/localizer/lib/localizer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
library localizer;

export 'src/localizer_base.dart';

// TODO: Export any libraries intended for clients of this package.
export 'src/localizer_locale.dart';
2 changes: 1 addition & 1 deletion packages/localizer/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: localizer
description: A starting point for Dart libraries or applications.
version: 1.0.1
version: 1.0.1+1
homepage: https://github.com/LinwoodCloud/flutter_plugins
repository: https://github.com/LinwoodCloud/flutter_plugins
documentation: https://github.com/LinwoodCloud/flutter_plugins
Expand Down

0 comments on commit e5e4311

Please sign in to comment.