mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-13 08:01:53 +00:00
chore: move language files to the root directory to share them with both Flutter and Tauri. (#2970)
This commit is contained in:
parent
2c669f1b85
commit
3d72b6fa12
2
frontend/appflowy_flutter/.gitignore
vendored
2
frontend/appflowy_flutter/.gitignore
vendored
@ -75,3 +75,5 @@ windows/flutter/dart_ffi/
|
|||||||
coverage/
|
coverage/
|
||||||
|
|
||||||
**/failures/*.png
|
**/failures/*.png
|
||||||
|
|
||||||
|
assets/translations/*.json
|
||||||
|
|||||||
@ -10,6 +10,11 @@ cd /d "%~dp0"
|
|||||||
|
|
||||||
cd ..\..\..\appflowy_flutter
|
cd ..\..\..\appflowy_flutter
|
||||||
|
|
||||||
|
REM copy the resources/translations folder to
|
||||||
|
REM the appflowy_flutter/assets/translation directory
|
||||||
|
echo Copying resources/translations to appflowy_flutter/assets/translations
|
||||||
|
xcopy /E /Y /I ..\resources\translations assets\translations
|
||||||
|
|
||||||
call flutter packages pub get
|
call flutter packages pub get
|
||||||
|
|
||||||
echo Specifying source directory for AppFlowy Localizations.
|
echo Specifying source directory for AppFlowy Localizations.
|
||||||
|
|||||||
@ -10,6 +10,10 @@ cd "$(dirname "$0")"
|
|||||||
# Navigate to the project root
|
# Navigate to the project root
|
||||||
cd ../../../appflowy_flutter
|
cd ../../../appflowy_flutter
|
||||||
|
|
||||||
|
# copy the resources/translations folder to
|
||||||
|
# the appflowy_flutter/assets/translation directory
|
||||||
|
cp -r ../resources/translations assets/translations
|
||||||
|
|
||||||
flutter packages pub get
|
flutter packages pub get
|
||||||
|
|
||||||
echo "Specifying source directory for AppFlowy Localizations."
|
echo "Specifying source directory for AppFlowy Localizations."
|
||||||
|
|||||||
@ -9,8 +9,8 @@ export async function defineConfig(env) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
referenceLanguage: 'en',
|
referenceLanguage: 'en',
|
||||||
plugins: [pluginJson({
|
plugins: [pluginJson({
|
||||||
pathPattern: './frontend/appflowy_flutter/assets/translations/{language}.json',
|
pathPattern: './frontend/resources/translations/{language}.json',
|
||||||
variableReferencePattern: ["@:"]
|
variableReferencePattern: ["@:"]
|
||||||
}), standardLintRules()]
|
}), standardLintRules()]
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user