mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
update relevant docs
This commit is contained in:
+1
-1
@@ -350,7 +350,7 @@ These are the current metrics we collect usage stats for:
|
||||
> Note: The curly brackets in the metric name represents a template and is replaced with a value when the metric is processed.
|
||||
|
||||
Metrics are collected within 3 scopes Daily, monthly, an infinity. Adding new usage metric in order to aggregate usage stats is very simple, but very much dependent on where do you want to collect
|
||||
statistics ,via API or via background worker. For both cases you will need to add a `const` variable in `app/init.php` under the usage metrics list using the naming convention `METRIC_<RESOURCE_NAME>` as shown below.
|
||||
statistics ,via API or via background worker. For both cases you will need to add a `const` variable in `app/init/app.php` under the usage metrics list using the naming convention `METRIC_<RESOURCE_NAME>` as shown below.
|
||||
|
||||
```php
|
||||
// Usage metrics
|
||||
|
||||
@@ -135,9 +135,9 @@ Add your language code to [codes.php](https://github.com/appwrite/appwrite/blob/
|
||||
...
|
||||
```
|
||||
|
||||
Finally, load your translation file in `init.php` by following a pattern similar to the [existing languages](https://github.com/appwrite/appwrite/blob/locale/app/init.php#L270).
|
||||
Finally, load your translation file in `app.php` by following a pattern similar to the [existing languages](https://github.com/appwrite/appwrite/blob/locale/app/init/app.php#L270).
|
||||
|
||||
> Please make sure to keep both `codes.php` and `init.php` in the alphabetical order A-Z.
|
||||
> Please make sure to keep both `codes.php` and `app.php` in the alphabetical order A-Z.
|
||||
|
||||
## 4. Test the translations
|
||||
|
||||
|
||||
Reference in New Issue
Block a user