update relevant docs

This commit is contained in:
Damodar Lohani
2025-01-28 05:16:43 +00:00
parent ec9bc26e2a
commit 79da2b9da9
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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