@manyducks.co/dolla 2.0.0-alpha.12 → 2.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,15 +61,15 @@ export declare class I18n {
61
61
  * Add a custom format callback.
62
62
  *
63
63
  * @example
64
- * Dolla.i18n.addFormat("myCurrency", (locale, value, options) => {
65
- * // ...
64
+ * Dolla.i18n.addFormat("uppercase", (locale, value, options) => {
65
+ * return value.toUpperCase();
66
66
  * });
67
67
  *
68
68
  * {
69
- * "exampleKey": "{{count | myCurrency}} dollars"
69
+ * "greeting": "Hello, {{name|uppercase}}!"
70
70
  * }
71
71
  *
72
- * t("exampleKey", {count: 5}); // State<"&5 dollars">
72
+ * t("greeting", {name: "world"}); // State<"Hello, WORLD!">
73
73
  */
74
74
  addFormat(name: string, callback: (locale: string, value: unknown, options: Record<string, any>) => string): void;
75
75
  /**
package/docs/http.md ADDED
@@ -0,0 +1,5 @@
1
+ # HTTP Client
2
+
3
+ > TODO: Write me.
4
+
5
+ This page goes into detail on how to use the built in HTTP client.
package/docs/i18n.md ADDED
@@ -0,0 +1,5 @@
1
+ # Internationalization (i18n) Support
2
+
3
+ > TODO: Write me.
4
+
5
+ This page goes into detail on how to work with translations.
package/docs/router.md ADDED
@@ -0,0 +1,5 @@
1
+ # Router
2
+
3
+ > TODO: Write me.
4
+
5
+ This page goes into detail on what you can do with the router.
package/docs/states.md ADDED
@@ -0,0 +1,5 @@
1
+ # States
2
+
3
+ > TODO: Write me.
4
+
5
+ This page goes into detail on everything State related.
package/docs/views.md ADDED
@@ -0,0 +1,5 @@
1
+ # Views
2
+
3
+ > TODO: Write me.
4
+
5
+ This page goes into detail on Views; props, context, applying styles and classes, etc.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyducks.co/dolla",
3
- "version": "2.0.0-alpha.12",
3
+ "version": "2.0.0-alpha.13",
4
4
  "description": "Front-end components, routing and state management.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",