Skip to content

Commit

Permalink
Add iniitial version of Localization Import & Export
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-james-watson committed Dec 3, 2024
1 parent be95dcd commit 433a0df
Show file tree
Hide file tree
Showing 16 changed files with 4,093 additions and 0 deletions.
33 changes: 33 additions & 0 deletions plugins/localization-import-export/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies

/node_modules
/.pnp
.pnp.js
.yarn

# misc

.DS_Store
\*.pem

# files

my-plugin
dev-plugin
dist

# debug

npm-debug.log*
yarn-debug.log*
yarn-error.log\*

# local env files

.env\*.local

# Packed plugin

plugin.zip
3 changes: 3 additions & 0 deletions plugins/localization-import-export/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Localization Import & Export

Import and export your Framer localizations using the common XLIFF format.
25 changes: 25 additions & 0 deletions plugins/localization-import-export/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import js from "@eslint/js"
import globals from "globals"
import reactHooks from "eslint-plugin-react-hooks"
import reactRefresh from "eslint-plugin-react-refresh"
import tseslint from "typescript-eslint"

export default tseslint.config(
{ ignores: ["dist"] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2022,
globals: globals.browser,
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
},
}
)
6 changes: 6 additions & 0 deletions plugins/localization-import-export/framer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": "fc87df",
"name": "Localization Import & Export",
"modes": ["localization"],
"icon": "/icon.svg"
}
14 changes: 14 additions & 0 deletions plugins/localization-import-export/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Localization Import Export</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

Loading

0 comments on commit 433a0df

Please sign in to comment.