Skip to content

Commit a9aec79

Browse files
authored
Update README.md
1 parent 8071713 commit a9aec79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ of each platform. It is inspired from [nativescript-i18n](https://github.com/rbo
1111
* [Usage](#usage)
1212
* [Angular](#angular)
1313
* [Javascript](#javascript)
14+
* [Android](#android)
1415
* [File format](#file-format)
1516
* [Frequently asked questions](#frequently-asked-questions)
1617
* [How to set the default language?](#how-to-set-the-default-language)
@@ -88,6 +89,9 @@ const localize = require("nativescript-localize");
8889
console.log(localize("Hello world !"));
8990
```
9091

92+
### Android
93+
Application name needs to be defined, using the `app.name` key, in at least the default langage file to avoid the following error: `No resource found that matches the given name (at 'label' with value '@string/title_activity_kimera')`.
94+
9195
## File format
9296
Each file is imported using `require`, use the file format of your choice:
9397

@@ -120,7 +124,6 @@ const i18n = {
120124
module.exports = i18n;
121125
```
122126

123-
If you get a `No resource found that matches the given name (at 'label' with value '@string/title_activity_kimera')` when building the app, you have to set the `"app.name"` in at least the `.default` translation file.
124127
## Frequently asked questions
125128
### How to set the default language?
126129
Add the `.default` extension to the default language file to set it as the fallback language:

0 commit comments

Comments
 (0)