fbt-inline-translations 0.1.0 → 0.1.4
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.
- package/.idea/inline-translations.iml +8 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/README.md +3 -3
- package/dist/bundle.js +1 -1
- package/package.json +2 -2
- package/src/App.css +5 -0
- package/src/App.tsx +7 -5
- package/src/components/Candidate.tsx +3 -3
- package/src/components/Composer.tsx +6 -6
- package/src/components/PhraseOverview.tsx +4 -2
- package/src/components/TranslationCard.tsx +8 -8
- package/src/index.tsx +1 -1
- package/tailwind.config.js +1 -0
- package/dist/index.html +0 -26
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
|
5
|
+
<orderEntry type="inheritedJdk" />
|
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
+
</component>
|
|
8
|
+
</module>
|
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/inline-translations.iml" filepath="$PROJECT_DIR$/.idea/inline-translations.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/vcs.xml
ADDED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 👽 Inline translations for FBT
|
|
2
2
|
|
|
3
|
-

|
|
3
|
+

|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## ℹ️ Usage notes
|
|
@@ -22,7 +22,7 @@ Register your FBT project on [Swiftyper Translations](https://translations.swift
|
|
|
22
22
|
|
|
23
23
|
### Non-React usage
|
|
24
24
|
|
|
25
|
-
Add this code to
|
|
25
|
+
Add this code to your page:
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
28
|
<div id="inline-translator"></div>
|
|
@@ -33,7 +33,7 @@ Add this code to page your page:
|
|
|
33
33
|
token: 'YOUR_API_KEY_HERE',
|
|
34
34
|
locale: 'sk_SK', // translation locale
|
|
35
35
|
contributor: 'contributor@email.com', // contributor must be invited
|
|
36
|
-
darkMode: false, // dark mode also depends on html class 'dark'
|
|
36
|
+
darkMode: false, // dark mode also depends on html class 'tw-dark'
|
|
37
37
|
})
|
|
38
38
|
</script>
|
|
39
39
|
```
|