chore: move language files to the root directory to share them with both Flutter and Tauri. (#2970)

This commit is contained in:
Lucas.Xu 2023-07-11 19:27:40 +07:00 committed by GitHub
parent 2c669f1b85
commit 3d72b6fa12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 13 additions and 2 deletions

View File

@ -75,3 +75,5 @@ windows/flutter/dart_ffi/
coverage/
**/failures/*.png
assets/translations/*.json

View File

@ -10,6 +10,11 @@ cd /d "%~dp0"
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
echo Specifying source directory for AppFlowy Localizations.

View File

@ -10,6 +10,10 @@ cd "$(dirname "$0")"
# Navigate to the project root
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
echo "Specifying source directory for AppFlowy Localizations."

View File

@ -9,8 +9,8 @@ export async function defineConfig(env) {
return {
referenceLanguage: 'en',
plugins: [pluginJson({
pathPattern: './frontend/appflowy_flutter/assets/translations/{language}.json',
plugins: [pluginJson({
pathPattern: './frontend/resources/translations/{language}.json',
variableReferencePattern: ["@:"]
}), standardLintRules()]
};